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 | 6f1373c1983ea5eb6e0853ae16621e5c0c348df2 (patch) | |
tree | bc217aa7d7168a1f07c787f7eab1965a7e4fb2da /docs/ReleaseNotes.rst | |
parent | 92a8170754dda7ca8769e784388396cc267fc68b (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345486 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/ReleaseNotes.rst')
-rw-r--r-- | docs/ReleaseNotes.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst index c6ddbfd8ea..69343eab84 100644 --- a/docs/ReleaseNotes.rst +++ b/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 -------------------------- |