Don't normalise CXX11/C2X attribute names to start with ::
authorJohn Brawn <john.brawn@arm.com>
Wed, 25 Mar 2020 10:53:30 +0000 (10:53 +0000)
committerJohn Brawn <john.brawn@arm.com>
Wed, 25 Mar 2020 14:33:44 +0000 (14:33 +0000)
commitbc3f171090f6d9f84a5d7b333bc70a1e14afffd4
treed18ce00b2e340593a098b7e28bc866052da0a9a1
parent72b51d6f93b503be23ead4dce850b5240834bbb7
Don't normalise CXX11/C2X attribute names to start with ::

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.

Differential Revision: https://reviews.llvm.org/D76704
clang/lib/Basic/Attributes.cpp
clang/utils/TableGen/ClangAttrEmitter.cpp