[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 13:11:26 PST 2020


aaron.ballman added a comment.

In D91630#2400731 <https://reviews.llvm.org/D91630#2400731>, @rsmith wrote:

> Do `[[deprecated]]` and `[[maybe_unused]]` now work for //using-declarator//s? If so, a test for that would be useful.

I think the answer is yes and no, respectively (at least in terms of whether the attribute will apply to the subject) -- but `[[clang::annotate("whatever")]]` is also a good test attribute as would be any attribute whose `Subjects` includes `Named` (for `NamedDecl`s).


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

https://reviews.llvm.org/D91630



More information about the cfe-commits mailing list