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

@@ -13,7 +13,7 @@ import semmle.code.cpp.pointsto.PointsTo
predicate closed(Expr e) {
exists(FunctionCall fc |
fc.getTarget().hasGlobalName("close") and
fc.getTarget().hasGlobalOrStdName("close") and
fc.getArgument(0) = e
)
}