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.
14 lines
142 B
C++
14 lines
142 B
C++
namespace {
|
|
class C {
|
|
public:
|
|
C* d;
|
|
static void g(int x, int y);
|
|
};
|
|
}
|
|
|
|
static void f() {
|
|
int i, j, k, l;
|
|
C c;
|
|
c.d->g(i + j, k - l);
|
|
}
|