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
- rG LLVM Github Monorepo
- Build Status
Buildable 36020 Build 36019: arc lint + arc unit
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. |