mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
These were due to several functions occurring that would have the same TRAP key. By making the functions static or wrapping the defining class in an anonymous namespace the TRAP keys will differ from each other.
21 lines
224 B
C++
21 lines
224 B
C++
namespace eehandler {
|
|
|
|
static void f() {
|
|
try {
|
|
try {
|
|
throw 1;
|
|
} catch (int i) {
|
|
} catch (...) {
|
|
}
|
|
} catch (int j) {
|
|
}
|
|
}
|
|
|
|
static void g(bool condition) {
|
|
try {
|
|
if (condition) throw 1;
|
|
} catch (...) {
|
|
}
|
|
}
|
|
}
|