From 1c12378ce976e1bdfdd8800d0c8aa4417db40470 Mon Sep 17 00:00:00 2001 From: Frank Zingsheim Date: Thu, 23 Jul 2015 13:00:25 +0200 Subject: [PATCH] Simplified pattern in Tokenizer::simplifyExternC() (#5544) --- lib/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 911a64255..e95979da7 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -2023,7 +2023,7 @@ void Tokenizer::simplifyExternC() if (isC()) return; for (Token *tok = list.front(); tok; tok = tok->next()) { - if (Token::Match(tok, "extern \"C\" {|")) { + if (Token::Match(tok, "extern \"C\")) { if (tok->strAt(2) == "{") { tok->linkAt(2)->deleteThis(); tok->deleteNext(2);