C++: use Declaration.hasGlobalOrStdName

This commit is contained in:
Robert Marsh
2019-07-11 16:00:41 -07:00
parent bff68a00ac
commit 03f72d207c
32 changed files with 138 additions and 125 deletions

View File

@@ -15,5 +15,5 @@ import cpp
from FunctionCall call, Function target
where
call.getTarget() = target and
target.hasGlobalName("gets")
target.hasGlobalOrStdName("gets")
select call, "gets does not guard against buffer overflow"