File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9528,12 +9528,12 @@ void Tokenizer::simplifyCPPAttribute()
95289528 head = skipCPPOrAlignAttribute (head)->next ();
95299529 while (Token::Match (head, " %name%|::|*|&|<|>|," )) // skip return type
95309530 head = head->next ();
9531- if (head && head->str () == " (" && TokenList::isFunctionHead (head, " {;__attribute__" )) {
9531+ if (head && head->str () == " (" && ( TokenList::isFunctionHead (head, " {;" ) || Token::Match (head-> link (), " ) __attribute__" ) )) {
95329532 head->previous ()->isAttributeNoreturn (true );
95339533 }
95349534 } else if (Token::findsimplematch (tok->tokAt (2 ), " nodiscard" , tok->link ())) {
95359535 Token * head = skipCPPOrAlignAttribute (tok)->next ();
9536- while (isCPPAttribute (head) || isAlignAttribute (head))
9536+ while (isCPPAttribute (head) || isAlignAttribute (head))
95379537 head = skipCPPOrAlignAttribute (head)->next ();
95389538 while (Token::Match (head, " %name%|::|*|&|<|>|," ))
95399539 head = head->next ();
You can’t perform that action at this time.
0 commit comments