summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/pragma-attribute-namespace.c
Commit message (Collapse)AuthorAgeFilesLines
* __has_feature(pragma_clang_attribute_namespaces) should be __has_extensionErik Pilkington2019-01-081-1/+1
| | | | | | Thanks to Richard Smith for pointing this out. llvm-svn: 350642
* Add a __has_feature check for namespaces on #pragma clang attribute.Erik Pilkington2019-01-071-0/+4
| | | | | | Support for this was added in r349845. llvm-svn: 350572
* Add support for namespaces on #pragma clang attributeErik Pilkington2018-12-201-0/+37
Namespaces are introduced by adding an "identifier." before a push/pop directive. Pop directives with namespaces can only pop a attribute group that was pushed with the same namespace. Push and pop directives that don't opt into namespaces have the same semantics. This is necessary to prevent a pitfall of using multiple #pragma clang attribute directives spread out in a large file, particularly when macros are involved. It isn't easy to see which pop corripsonds to which push, so its easy to inadvertently pop the wrong group. Differential revision: https://reviews.llvm.org/D55628 llvm-svn: 349845
OpenPOWER on IntegriCloud