Simplified pattern in Tokenizer::simplifyExternC() (#5544)

This commit is contained in:
Frank Zingsheim 2015-07-23 13:00:25 +02:00 committed by PKEuS
parent c4f9a2a160
commit 1c12378ce9
1 changed files with 1 additions and 1 deletions

View File

@ -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);