C++: Use hasGlobalName.

This commit is contained in:
Geoffrey White
2020-03-31 18:10:41 +01:00
parent aa13257c1b
commit f430cf9d18
2 changed files with 2 additions and 2 deletions

View File

@@ -223,7 +223,7 @@ class SizelessAllocationFunction extends AllocationFunction {
class OperatorNewAllocationFunction extends AllocationFunction {
OperatorNewAllocationFunction() {
exists(string name |
hasGlobalOrStdName(name) and
hasGlobalName(name) and
(
// operator new(bytes, ...)
name = "operator new" or

View File

@@ -87,7 +87,7 @@ class StandardDeallocationFunction extends DeallocationFunction {
class OperatorDeleteDeallocationFunction extends DeallocationFunction {
OperatorDeleteDeallocationFunction() {
exists(string name |
hasGlobalOrStdName(name) and
hasGlobalName(name) and
(
// operator delete(pointer, ...)
name = "operator delete" or