dump: add externLang attribute for tokens
This commit is contained in:
parent
7111270d5f
commit
f1aa9eb48f
|
@ -3018,7 +3018,7 @@ void Tokenizer::simplifyExternC()
|
|||
tok->linkAt(2)->deleteThis(); // }
|
||||
tok->deleteNext(2); // "C" {
|
||||
} else {
|
||||
while ((tok2 = tok2->next()) && !Token::simpleMatch(tok2, ";"))
|
||||
while ((tok2 = tok2->next()) && !Token::Match(tok2, "[;{]"))
|
||||
tok2->isExternC(true);
|
||||
tok->deleteNext(); // "C"
|
||||
}
|
||||
|
@ -5247,6 +5247,8 @@ void Tokenizer::dump(std::ostream &out) const
|
|||
else if (tok->tokType() == Token::eLogicalOp)
|
||||
out << " isLogicalOp=\"true\"";
|
||||
}
|
||||
if (tok->isExternC())
|
||||
out << " externLang=\"C\"";
|
||||
if (tok->isExpandedMacro())
|
||||
out << " isExpandedMacro=\"true\"";
|
||||
if (tok->isRemovedVoidParameter())
|
||||
|
|
Loading…
Reference in New Issue