]> granicus.if.org Git - clang/commit
Allow all supportable non-type attributes to be used with #pragma clang attribute.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 5 Sep 2018 00:28:57 +0000 (00:28 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 5 Sep 2018 00:28:57 +0000 (00:28 +0000)
commit6164bba681ecdc6c7904973062a8e2f1807a85bd
treea73bd6a57d0415341948ec3fe86acbbe0dddc5fb
parenta9d72d6c527602c8495cf972bafec7a54f67df05
Allow all supportable non-type attributes to be used with #pragma clang attribute.

Summary:
We previously disallowed use of undocumented attributes with #pragma clang
attribute, but the justification for doing so was weak and it prevented many
reasonable use cases.

Reviewers: aaron.ballman, arphaman

Subscribers: cfe-commits, rnk, benlangmuir, dexonsmith, erik.pilkington

Differential Revision: https://reviews.llvm.org/D51507

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341437 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
test/Misc/pragma-attribute-supported-attributes-list.test
test/Parser/pragma-attribute.cpp