Skip to content

Commit ab889cd

Browse files
committed
handle templated return types
1 parent 12c0516 commit ab889cd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

lib/tokenize.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6567,8 +6567,19 @@ void Tokenizer::simplifyHeadersAndUnusedTemplates()
65676567
funcTok = funcTok->next();
65686568
continue;
65696569
}
6570+
if (Token::simpleMatch(funcTok, "<")) {
6571+
funcTok = funcTok->findClosingBracket();
6572+
if (funcTok) {
6573+
funcTok = funcTok->next();
6574+
} else {
6575+
break;
6576+
}
6577+
continue;
6578+
}
65706579
break;
65716580
}
6581+
if (!funcTok)
6582+
break;
65726583
if (!Token::Match(funcTok, "%name% (")) {
65736584
tok = funcTok;
65746585
continue;

0 commit comments

Comments
 (0)