Skip to content

Commit 12c0516

Browse files
committed
handle constexpr
1 parent 3c85903 commit 12c0516

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
@@ -6563,7 +6563,7 @@ void Tokenizer::simplifyHeadersAndUnusedTemplates()
65636563
} else {
65646564
Token *funcTok = closingBracket->next();
65656565
while (funcTok) {
6566-
if (Token::Match(funcTok, "static|inline|const|%type%|&|&&|*") && !Token::Match(funcTok, "%name% (")) {
6566+
if (Token::Match(funcTok, "constexpr|static|inline|const|%type%|&|&&|*") && !Token::Match(funcTok, "%name% (")) {
65676567
funcTok = funcTok->next();
65686568
continue;
65696569
}

0 commit comments

Comments
 (0)