We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8c6a92 commit 3e617daCopy full SHA for 3e617da
1 file changed
cpp/autosar/src/rules/A0-1-3/UnusedLocalFunction.ql
@@ -23,14 +23,14 @@ import codingstandards.cpp.deadcode.UnusedFunctions
23
* passed in the arguments.
24
*/
25
predicate isCalled(Function unusedFunction) {
26
- exists (FunctionCall f | unusedFunction.getACallToThisFunction() = f)
+ unusedFunction = getTarget(_)
27
}
28
29
/** Checks if an overloaded function of
30
* the function passed in the arguments, is called.
31
32
predicate overloadedFunctionIsCalled(Function unusedFunction) {
33
- exists (Function f | f = unusedFunction.getAnOverload*() and isCalled(f))
+ exists (Function f | f = unusedFunction.getAnOverload() and isCalled(f))
34
or
35
unusedFunction.getNamespace().isAnonymous() and
36
exists (TopLevelFunction overloadedFunction |
0 commit comments