Skip to content

Commit

Permalink
Fix test for function namespacing
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingranade authored Apr 15, 2020
1 parent 14415de commit 91fd91b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lgtm/cpp-queries/c-style-math-functions.ql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 91fd91b

Please sign in to comment.