Author: Roy Jacobson Date: 2023-03-29T14:25:27+03:00 New Revision: da71cbacfc3f2b7519356ca105b4c1cde0026106
URL: https://github.com/llvm/llvm-project/commit/da71cbacfc3f2b7519356ca105b4c1cde0026106 DIFF: https://github.com/llvm/llvm-project/commit/da71cbacfc3f2b7519356ca105b4c1cde0026106.diff LOG: [Doc][Clang] Update information about default standard version Added: Modified: clang/www/cxx_status.html Removed: ################################################################################ diff --git a/clang/www/cxx_status.html b/clang/www/cxx_status.html index 8b1e8712e394..fe2a16d9cee1 100755 --- a/clang/www/cxx_status.html +++ b/clang/www/cxx_status.html @@ -498,8 +498,7 @@ <h2 id="cxx14">C++14 implementation status</h2> href="https://www.iso.org/standard/64029.html">ISO C++ 2014 standard</a>.</p> -<p>By default, Clang builds C++ code according to the C++14 standard. -You can use Clang in C++14 mode with the <code>-std=c++14</code> option +<p>You can use Clang in C++14 mode with the <code>-std=c++14</code> option (use <code>-std=c++1y</code> in Clang 3.4 and earlier).</p> <details> @@ -593,7 +592,8 @@ <h2 id="cxx17">C++17 implementation status</h2> <p>Clang 5 and later implement all the features of the <a href="https://www.iso.org/standard/68564.html">ISO C++ 2017 standard</a>.</p> -<p>You can use Clang in C++17 mode with the <code>-std=c++17</code> option +<p>By default, Clang 16 or later builds C++ code according to the C++17 standard. +You can use Clang in C++17 mode with the <code>-std=c++17</code> option (use <code>-std=c++1z</code> in Clang 4 and earlier).</p> <details open> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits