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
2323 * passed in the arguments.
2424 */
2525predicate isCalled ( Function unusedFunction ) {
26- exists ( FunctionCall f | unusedFunction . getACallToThisFunction ( ) = f )
26+ unusedFunction = getTarget ( _ )
2727}
2828
2929/** Checks if an overloaded function of
3030 * the function passed in the arguments, is called.
3131 */
3232predicate overloadedFunctionIsCalled ( Function unusedFunction ) {
33- exists ( Function f | f = unusedFunction .getAnOverload * ( ) and isCalled ( f ) )
33+ exists ( Function f | f = unusedFunction .getAnOverload ( ) and isCalled ( f ) )
3434 or
3535 unusedFunction .getNamespace ( ) .isAnonymous ( ) and
3636 exists ( TopLevelFunction overloadedFunction |
You can’t perform that action at this time.
0 commit comments