We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 381d5d3 commit 48d9b73Copy full SHA for 48d9b73
1 file changed
lib/tokenize.cpp
@@ -9549,7 +9549,7 @@ void Tokenizer::simplifyCPPAttribute()
9549
else if (Token::Match(tok->previous(), "%name%") && Token::Match(tok->link(), "] [;={]")) {
9550
tok->previous()->isAttributeMaybeUnused(true);
9551
} else {
9552
- if (Token::simpleMatch(head->next(), "[")) {
+ if (Token::Match(head, "auto|*|&|&& [")) { // c++17 structured binding
9553
head = head->next();
9554
const Token *end = head->link();
9555
for (head = head->next(); end && head != end; head = head->next()) {
0 commit comments