mirror of
https://github.com/github/codeql.git
synced 2026-01-27 21:33:03 +01:00
This implements calculation of the control-flow graph in QL. The new code is not enabled yet as we'll need more extractor changes first. The `SyntheticDestructorCalls.qll` file is a temporary solution that can be removed when the extractor produces this information directly.
26 lines
197 B
C++
26 lines
197 B
C++
namespace ehandler {
|
|
|
|
class C { };
|
|
class D { };
|
|
|
|
void g() {
|
|
throw 1;
|
|
}
|
|
|
|
void f() {
|
|
try {
|
|
try {
|
|
g();
|
|
throw 2;
|
|
l:
|
|
} catch (int) {
|
|
4;
|
|
}
|
|
} catch (C) {
|
|
5;
|
|
} catch (D) {
|
|
6;
|
|
}
|
|
}
|
|
}
|