mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
C++: use Declaration.hasGlobalOrStdName
This commit is contained in:
@@ -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
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user