Skip to content

Commit 0a0dcf2

Browse files
committed
Simplify
1 parent c610346 commit 0a0dcf2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkother.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4052,7 +4052,7 @@ void CheckOtherImpl::checkFuncArgNamesDifferent()
40524052
break;
40534053
}
40544054
// skip over templates and arrays
4055-
if (decl->link() && (!Token::Match(decl, "[()]") || Token::simpleMatch(decl->tokAt(-1), ") (")))
4055+
if (decl->link() && precedes(decl, decl->link()) && !Token::Match(decl, "( [*&]"))
40564056
decl = decl->link();
40574057
else if (decl->varId())
40584058
declarations[j] = decl;

0 commit comments

Comments
 (0)