We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcaaf1d commit 529f1a7Copy full SHA for 529f1a7
1 file changed
lib/checkother.cpp
@@ -2948,7 +2948,9 @@ void CheckOther::checkDuplicateExpression()
2948
while (parent && parent->astParent()) {
2949
parent = parent->astParent();
2950
}
2951
- if (parent && parent->previous() && isStaticAssert(*mSettings, parent->previous())) {
+ if (parent && parent->previous() &&
2952
+ (isStaticAssert(*mSettings, parent->previous()) ||
2953
+ Token::simpleMatch(parent->previous(), "assert"))) {
2954
continue;
2955
2956
0 commit comments