summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2019-09-27 12:25:19 +0000
committerMartin Storsjo <martin@martin.st>2019-09-27 12:25:19 +0000
commit822f64eae96c73035a0890db1614d4ce2b792fa4 (patch)
tree860af53636238fc2fa4bfae269fd1fe0db2583b9 /docs
parent22929c361efd3edc4d6937ac6e30f2462ac3fa13 (diff)
downloadclang-822f64eae96c73035a0890db1614d4ce2b792fa4.tar.gz
[clang] [AST] Treat "inline gnu_inline" the same way as "extern inline gnu_inline" in C++ mode
This matches how GCC handles it, see e.g. https://gcc.godbolt.org/z/HPplnl. GCC documents the gnu_inline attribute with "In C++, this attribute does not depend on extern in any way, but it still requires the inline keyword to enable its special behavior." The previous behaviour of gnu_inline in C++, without the extern keyword, can be traced back to the original commit that added support for gnu_inline, SVN r69045. Differential Revision: https://reviews.llvm.org/D67414 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/ReleaseNotes.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst
index 5dbc4a0415..91ae3071ff 100644
--- a/docs/ReleaseNotes.rst
+++ b/docs/ReleaseNotes.rst
@@ -128,7 +128,10 @@ C11 Feature Support
C++ Language Changes in Clang
-----------------------------
-- ...
+- The behaviour of the `gnu_inline` attribute now matches GCC, for cases
+ where used without the `extern` keyword. As this is a change compared to
+ how it behaved in previous Clang versions, a warning is emitted for this
+ combination.
C++1z Feature Support
^^^^^^^^^^^^^^^^^^^^^