diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 8d175408e..acbf81e26 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -9493,6 +9493,8 @@ void Tokenizer::reportUnknownMacros() continue; if (cAlternativeTokens.count(tok->linkAt(2)->next()->str()) > 0) continue; + if (tok->next()->str().compare(0, 2, "__") == 0) // attribute/annotation + continue; unknownMacroError(tok->next()); } }