Simplified pattern in Tokenizer::simplifyExternC() (#5544)
This commit is contained in:
parent
c4f9a2a160
commit
1c12378ce9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue