Fix test for function namespacing

This commit is contained in:
Kevin Granade
2020-04-15 04:24:08 +00:00
committed by GitHub
parent 14415de010
commit 91fd91bdf1
+1 -2
View File
@@ -12,8 +12,7 @@ import cpp
from FunctionCall call, Function fcn
where
call.getTarget() = fcn and
fcn.isTopLevel() and
call.getTarget() = fcn and fcn.isTopLevel() and not exists ( call.getNameQualifier() ) and
( fcn.hasGlobalName("abs") or fcn.hasGlobalName("fabs") or fcn.hasGlobalName("fabsf") or fcn.hasGlobalName("fabsl") or
fcn.hasGlobalName("fmod") or fcn.hasGlobalName("fmodf") or fcn.hasGlobalName("fmodl") or
fcn.hasGlobalName("remainder") or fcn.hasGlobalName("remainderf") or fcn.hasGlobalName("remainderl") or