[llvm-branch-commits] [cfe-branch] r197115 - Add information about C++1y support to Clang 3.4 release notes.

Richard Smith richard-llvm at metafoo.co.uk
Wed Dec 11 18:20:55 PST 2013


Author: rsmith
Date: Wed Dec 11 20:20:54 2013
New Revision: 197115

URL: http://llvm.org/viewvc/llvm-project?rev=197115&view=rev
Log:
Add information about C++1y support to Clang 3.4 release notes.

Modified:
    cfe/branches/release_34/docs/ReleaseNotes.rst

Modified: cfe/branches/release_34/docs/ReleaseNotes.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/release_34/docs/ReleaseNotes.rst?rev=197115&r1=197114&r2=197115&view=diff
==============================================================================
--- cfe/branches/release_34/docs/ReleaseNotes.rst (original)
+++ cfe/branches/release_34/docs/ReleaseNotes.rst Wed Dec 11 20:20:54 2013
@@ -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|_.
 
-C++11 Feature Support
+.. |__has_feature macro| replace:: ``__has_feature`` macro
+.. ___has_feature macro: LanguageExtensions.html#has-feature-and-has-extension
+
+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
 -------------------------------------





More information about the llvm-branch-commits mailing list