diff options
author | Erik Pilkington <erik.pilkington@gmail.com> | 2018-10-29 02:29:21 +0000 |
---|---|---|
committer | Erik Pilkington <erik.pilkington@gmail.com> | 2018-10-29 02:29:21 +0000 |
commit | a7cc6b360fe976c9105968d73f60e26172dc7b77 (patch) | |
tree | e02f473cba9c5e5fc4eed3653a5aaec219c1f908 /clang/docs/ReleaseNotes.rst | |
parent | 36d9746630fd4fb71fef627057fdd5b899cfd221 (diff) | |
download | bcm5719-llvm-a7cc6b360fe976c9105968d73f60e26172dc7b77.tar.gz bcm5719-llvm-a7cc6b360fe976c9105968d73f60e26172dc7b77.zip |
Support for groups of attributes in #pragma clang attribute
This commit enables pushing an empty #pragma clang attribute push, then adding
multiple attributes to it, then popping them all with #pragma clang attribute
pop, just like #pragma clang diagnostic. We still support the current way of
adding these, #pragma clang attribute push(__attribute__((...))), by treating it
like a combined push/attribute. This is needed to create macros like:
DO_SOMETHING_BEGIN(attr1, attr2, attr3)
// ...
DO_SOMETHING_END
rdar://45496947
Differential revision: https://reviews.llvm.org/D53621
llvm-svn: 345486
Diffstat (limited to 'clang/docs/ReleaseNotes.rst')
-rw-r--r-- | clang/docs/ReleaseNotes.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index c6ddbfd8eaf..69343eab84b 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -86,8 +86,8 @@ Modified Compiler Flags New Pragmas in Clang -------------------- -Clang now supports the ... - +- Clang now supports adding multiple ``#pragma clang attribute`` attributes into + a "scope" of ``push``ed attributes. Attribute Changes in Clang -------------------------- |