Skip to content

Commit 564bddb

Browse files
committed
fix #14118
1 parent c4d35a2 commit 564bddb

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
@@ -6518,7 +6518,7 @@ void Tokenizer::simplifyHeadersAndUnusedTemplates()
65186518
}
65196519
}
65206520

6521-
if (!tok->previous() || Token::Match(tok->previous(), "[;{}]")) {
6521+
if (!tok->previous() || Token::Match(tok->previous(), "[;{}:]")) {
65226522
// Remove unused function declarations
65236523
if (isIncluded && removeUnusedIncludedFunctions) {
65246524
while (true) {

0 commit comments

Comments
 (0)