From 64b6333290f9b7df5a25d4fba34611de3078a792 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Wed, 4 Feb 2015 23:32:33 +0000 Subject: Release notes: add blurb about C++17 support git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_36@228233 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ReleaseNotes.rst | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst index 4e2cf0d9eb..19c84f51b0 100644 --- a/docs/ReleaseNotes.rst +++ b/docs/ReleaseNotes.rst @@ -120,10 +120,35 @@ C++ Language Changes in Clang - Clang will put individual ``.init_array/.ctors`` sections in comdats, reducing code duplication and speeding up startup. -C++11 Feature Support +C++17 Feature Support ^^^^^^^^^^^^^^^^^^^^^ -... +Clang has experimental support for some proposed C++1z (tentatively, C++17) +features. This support can be enabled using the `-std=c++1z` flag. + +New in Clang 3.6 is support for: + +- Fold expressions + +- `u8` character literals + +- Nested namespace definitions: `namespace A::B { ... }` as a shorthand for + `namespace A { namespace B { ... } }` + +- Attributes for namespaces and enumerators + +- Constant evaluation for all non-type template arguments + +Note that these features may be changed or removed in future Clang releases +without notice. + +Support for `for (identifier : range)` as a synonym for +`for (auto &&identifier : range)` has been removed as it is no longer currently +considered for C++17. + +For more details on C++ feature support, see +`the C++ status page `_. + Objective-C Language Changes in Clang ------------------------------------- -- cgit v1.2.3