We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c610346 commit 0a0dcf2Copy full SHA for 0a0dcf2
1 file changed
lib/checkother.cpp
@@ -4052,7 +4052,7 @@ void CheckOtherImpl::checkFuncArgNamesDifferent()
4052
break;
4053
}
4054
// skip over templates and arrays
4055
- if (decl->link() && (!Token::Match(decl, "[()]") || Token::simpleMatch(decl->tokAt(-1), ") (")))
+ if (decl->link() && precedes(decl, decl->link()) && !Token::Match(decl, "( [*&]"))
4056
decl = decl->link();
4057
else if (decl->varId())
4058
declarations[j] = decl;
0 commit comments