dump; add 'noreturn' attribute for function calls

This commit is contained in:
Daniel Marjamäki 2021-12-19 14:55:00 +01:00
parent d69257e8cd
commit 0d7a3a8b26
1 changed files with 5 additions and 0 deletions

View File

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