parent
57bbb17f3b
commit
dc59543348
|
@ -8195,7 +8195,7 @@ void Tokenizer::reportUnknownMacros() const
|
|||
if (Token::Match(inner, "[[({]"))
|
||||
inner = inner->link();
|
||||
else if (inner->str() == ";")
|
||||
unknownMacroError(inner);
|
||||
unknownMacroError(tok);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -7039,6 +7039,10 @@ private:
|
|||
"typedef int UStringCaseMapper(icu::BreakIterator* iter);\n"),
|
||||
InternalError,
|
||||
"There is an unknown macro here somewhere. Configuration is required. If U_ICU_ENTRY_POINT_RENAME is a macro then please configure it.");
|
||||
|
||||
ASSERT_THROW_EQUALS(tokenizeAndStringify("void f() { MACRO(x(), y(), \"abc\", z(); ok = true); }\n"), // #12006
|
||||
InternalError,
|
||||
"There is an unknown macro here somewhere. Configuration is required. If MACRO is a macro then please configure it.");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue