Skip to content

Commit eb4a341

Browse files
committed
handle constexpr
1 parent 41671ba commit eb4a341

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tokenize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6568,7 +6568,7 @@ void Tokenizer::simplifyHeadersAndUnusedTemplates()
65686568
} else {
65696569
Token *funcTok = closingBracket->next();
65706570
while (funcTok) {
6571-
if (Token::Match(funcTok, "static|inline|const|%type%|&|&&|*") && !Token::Match(funcTok, "%name% (")) {
6571+
if (Token::Match(funcTok, "constexpr|static|inline|const|%type%|&|&&|*") && !Token::Match(funcTok, "%name% (")) {
65726572
funcTok = funcTok->next();
65736573
continue;
65746574
}

0 commit comments

Comments
 (0)