mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +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.
12 lines
93 B
C++
12 lines
93 B
C++
namespace {
|
|
class C {
|
|
public:
|
|
~C();
|
|
};
|
|
}
|
|
|
|
static void f() {
|
|
C* c = new C();
|
|
delete c;
|
|
}
|