C++: Make sure non-member functions are not reported to have a qualifier

This commit is contained in:
Mathias Vorreiter Pedersen
2020-04-09 08:22:47 +02:00
parent 7298b68674
commit 6c7e1cdd46

View File

@@ -331,6 +331,7 @@ class TranslatedFunctionCall extends TranslatedCallExpr, TranslatedDirectCall {
}
override predicate hasQualifier() {
exists(getQualifier()) and
not exists(MemberFunction func | expr.getTarget() = func and func.isStatic())
}
}