From 91fd91bdf1bff74148949a000ef93fd73e75df34 Mon Sep 17 00:00:00 2001 From: Kevin Granade Date: Wed, 15 Apr 2020 04:24:08 +0000 Subject: [PATCH] Fix test for function namespacing --- lgtm/cpp-queries/c-style-math-functions.ql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lgtm/cpp-queries/c-style-math-functions.ql b/lgtm/cpp-queries/c-style-math-functions.ql index 928cebdf695..4b108713eda 100644 --- a/lgtm/cpp-queries/c-style-math-functions.ql +++ b/lgtm/cpp-queries/c-style-math-functions.ql @@ -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