File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
cpp/autosar/src/rules/A0-1-3 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,14 @@ import codingstandards.cpp.deadcode.UnusedFunctions
23
23
* passed in the arguments.
24
24
*/
25
25
predicate isCalled ( Function unusedFunction ) {
26
- exists ( FunctionCall f | unusedFunction . getACallToThisFunction ( ) = f )
26
+ unusedFunction = getTarget ( _ )
27
27
}
28
28
29
29
/** Checks if an overloaded function of
30
30
* the function passed in the arguments, is called.
31
31
*/
32
32
predicate overloadedFunctionIsCalled ( Function unusedFunction ) {
33
- exists ( Function f | f = unusedFunction .getAnOverload * ( ) and isCalled ( f ) )
33
+ exists ( Function f | f = unusedFunction .getAnOverload ( ) and isCalled ( f ) )
34
34
or
35
35
unusedFunction .getNamespace ( ) .isAnonymous ( ) and
36
36
exists ( TopLevelFunction overloadedFunction |
You can’t perform that action at this time.
0 commit comments