Skip to content

Commit 6c7e1cd

Browse files
committed
C++: Make sure non-member functions are not reported to have a qualifier
1 parent 7298b68 commit 6c7e1cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/ql/src/semmle/code/cpp/ir/implementation/raw/internal/TranslatedCall.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ class TranslatedFunctionCall extends TranslatedCallExpr, TranslatedDirectCall {
331331
}
332332

333333
override predicate hasQualifier() {
334+
exists(getQualifier()) and
334335
not exists(MemberFunction func | expr.getTarget() = func and func.isStatic())
335336
}
336337
}

0 commit comments

Comments
 (0)