If a class or struct or union declaration contains a pragma that
is not valid in this context, compiler issues generic error like
"expected member name or ';' after declaration specifiers". With this
change the error tells that this pragma cannot appear in this declaration.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang/lib/Basic/TokenKinds.cpp | ||
---|---|---|
55 ↗ | (On Diff #210610) | The right way to do this is to make a PRAGMA_ANNOTATION macro in TokenKinds.def that defaults to ANNOTATION, like that file already does with e.g. CXX11_KEYWORD. But for future reference, there's also a StringRef::startsWith. |
clang/lib/Basic/TokenKinds.cpp | ||
---|---|---|
15 ↗ | (On Diff #212188) | This is no longer necessary, right? |
clang/lib/Basic/TokenKinds.cpp | ||
---|---|---|
15 ↗ | (On Diff #212188) | Sure, removed it. |