dump; add 'noreturn' attribute for function calls
This commit is contained in:
parent
d69257e8cd
commit
0d7a3a8b26
|
@ -5487,6 +5487,11 @@ void Tokenizer::dump(std::ostream &out) const
|
|||
if (!vt.empty())
|
||||
out << ' ' << vt;
|
||||
}
|
||||
if (!tok->varId() && tok->scope()->isExecutable() && Token::Match(tok, "%name% (")) {
|
||||
if (mSettings->library.isnoreturn(tok))
|
||||
out << " noreturn=\"true\"";
|
||||
}
|
||||
|
||||
out << "/>" << std::endl;
|
||||
}
|
||||
out << " </tokenlist>" << std::endl;
|
||||
|
|
Loading…
Reference in New Issue