summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-12-12 02:20:54 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-12-12 02:20:54 +0000
commit22540da1d7d4ba5b5fa3ff54cf782710c7565f89 (patch)
tree224e194bb1080e40954f45fdca430eeff0babd42
parent87ddfddba2542a4167aade1b701f7dc8f92dac3f (diff)
downloadclang-22540da1d7d4ba5b5fa3ff54cf782710c7565f89.tar.gz
clang-22540da1d7d4ba5b5fa3ff54cf782710c7565f89.tar.bz2
clang-22540da1d7d4ba5b5fa3ff54cf782710c7565f89.tar.xz
Add information about C++1y support to Clang 3.4 release notes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_34@197115 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--docs/ReleaseNotes.rst28
1 files changed, 24 insertions, 4 deletions
diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst
index 033cb308d3..480c85aafc 100644
--- a/docs/ReleaseNotes.rst
+++ b/docs/ReleaseNotes.rst
@@ -98,7 +98,7 @@ New Compiler Flags
- Clang no longer special cases -O4 to enable lto. Explicitly pass -flto to
enable it.
-- Clang no longer fails on >= -O5. Uses -O3 instead.
+- Clang no longer fails on >= -O5. These flags are mapped to -O3 instead.
- Command line "clang -O3 -flto a.c -c" and "clang -emit-llvm a.c -c"
are no longer equivalent.
- Clang now errors on unknown -m flags (``-munknown-to-clang``),
@@ -122,12 +122,32 @@ C++ Language Changes in Clang
member offsets for classes inheriting from certain classes with tail padding.
See PR16537.
-- ...
+- Clang 3.4 supports the 2013-08-28 draft of the ISO WG21 SG10 feature test
+ macro recommendations. These aim to provide a portable method to determine
+ whether a compiler supports a language feature, much like Clang's
+ |__has_feature macro|_.
+
+.. |__has_feature macro| replace:: ``__has_feature`` macro
+.. ___has_feature macro: LanguageExtensions.html#has-feature-and-has-extension
-C++11 Feature Support
+C++1y Feature Support
^^^^^^^^^^^^^^^^^^^^^
-...
+Clang 3.4 supports all the features in the current working draft of the
+upcoming C++ standard, provisionally named C++1y. Support for the following
+major new features has been added since Clang 3.3:
+
+- Generic lambdas and initialized lambda captures.
+- Deduced function return types (``auto f() { return 0; }``).
+- Generalized ``constexpr`` support (variable mutation and loops).
+- Variable templates and static data member templates.
+- Use of ``'`` as a digit separator in numeric literals.
+- Support for sized ``::operator delete`` functions.
+
+In addition, ``[[deprecated]]`` is now accepted as a synonym for Clang's
+existing ``deprecated`` attribute.
+
+Use ``-std=c++1y`` to enable C++1y mode.
Objective-C Language Changes in Clang
-------------------------------------