Extend 'Unknown macro' check

This commit is contained in:
Daniel Marjamäki 2018-11-13 18:30:40 +01:00
parent e6a5e0f752
commit a50eb56d8d
1 changed files with 1 additions and 1 deletions

View File

@ -4204,7 +4204,7 @@ void Tokenizer::removeMacrosInGlobalScope()
if (tok2 && tok2->str() == "(")
tok2 = tok2->link()->next();
if (Token::Match(tok, "%type% (") && Token::Match(tok2, "%type% (") && isFunctionHead(tok2->next(), "{"))
if (Token::Match(tok, "%type% (") && Token::Match(tok2, "%type% (") && !Token::Match(tok2, "noexcept|throw") && isFunctionHead(tok2->next(), ":;{"))
unknownMacroError(tok);
// remove unknown macros before namespace|class|struct|union