Currently square-bracket-style (CXX11/C2X) attribute names are normalised to start with :: if they don't have a namespace. This is a bit odd, as such names are rejected when parsing, so don't do this.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, thank you for this cleanup!
clang/lib/Basic/Attributes.cpp | ||
---|---|---|
89–91 | I think we should add an assert that the syntax used is either CXX11 or C2x if the scope name is not empty. |
I think we should add an assert that the syntax used is either CXX11 or C2x if the scope name is not empty.