[PATCH] D91630: [Parse] Add parsing support for C++ attributes on using-declarations

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 17 07:48:40 PST 2020


aaron.ballman added inline comments.


================
Comment at: clang/test/Parser/cxx0x-attributes.cpp:134
 
-[[]] using ns::i; // expected-error {{an attribute list cannot appear here}}
+[[]] using ns::i;
 [[unknown]] using namespace ns; // expected-warning {{unknown attribute 'unknown' ignored}}
----------------
Btw, a `-pedantic` test for the parser behavior would be useful so that we can be sure the new diagnostic is firing as expected.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91630/new/

https://reviews.llvm.org/D91630



More information about the cfe-commits mailing list