From: Richard Smith
Clang 3.3 and later implement all of the ISO - C++ 2011 standard. The following table describes the Clang version - in which each feature became available.
+Clang 3.3 and later implement all of the ISO + C++ 2011 standard.
By default, Clang builds C++ code according to the C++98 standard, with many
C++11 features accepted as extensions. You can use Clang in C++11 mode with the
Clang 3.4 and later implement all of the ISO
- C++ 2014 standard. The following table describes the
-Clang version in which each feature became available. You can use Clang in C++14 mode with the Clang has experimental support for some proposed features of
the C++ standard following C++14, provisionally named C++1z.
-The following table describes which C++1z features
-have been implemented in Clang and in which Clang version they became
-available. Note that support for these features may change or be removed without notice,
-as the draft C++1z standard evolves. You can use Clang in C++1z mode with the ISO C++ also publishes a number of documents describing additional language
-and library features that are not part of standard C++. The following table
-describes which language features have been implemented in Clang and in which
-Clang version they became available:-std=c++11
option. Clang's C++11 mode can be used
with libc++ or with gcc's libstdc++.
+List of features and minimum Clang version with support
+
Language Feature
@@ -420,17 +421,20 @@ such as Clang that does not provide any extended integer types.
because changing intmax_t
would be an ABI-incompatible
change.
+
C++14 implementation status
-std=c++14
option
(use -std=c++1y
in Clang 3.4 and earlier).List of features and minimum Clang version with support
+
Language Feature
@@ -512,20 +516,20 @@ added these functions in version 5.0, and libc++
added them in
version 3.7.
+
C++1z implementation status
-std=c++1z
option.List of features and minimum Clang version with support
+
Language Feature
@@ -746,23 +750,27 @@ functions are evaluated right-to-left under the MS ABI when called using operato
syntax, not left-to-right as P0145R3 requires.
+
Technical specifications and standing documents
List of features and minimum Clang version with support
+
Document
Latest draft
+ Compiler flag
Available in Clang?
SD-6: SG10 feature test recommendations
SD-6
+ N/A
Clang 3.4 (N3745)
@@ -794,29 +802,41 @@ Clang version they became available:
+ [TS] Concepts
P0121R0
- No
+
+ WIP
+
+
[DRAFT TS] Coroutines
+ P0057R5
+
+ WIP
[TS] Library Fundamentals, Version 1 (invocation type traits)
N4480
+ N/A
No
[DRAFT TS] Library Fundamentals, Version 2 (source_location)
- N4529
+ N4600
+ N/A
No
-
[TS] Modules
- P0143R2
- No
+ [DRAFT TS] Modules
+ N4592
+ -fmodules-ts
+ WIP
[TS] Transactional Memory
N4514
+
No