diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-03-10 00:11:00 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-03-10 00:11:00 +0000 |
| commit | 531c9a0c2772713f7cc89ef941628a6daa98ef92 (patch) | |
| tree | 3e4cc5016e8c9e8b0452fa80e69d9352cc4715ff /clang | |
| parent | 9b36209e31ce6ddba8ed52547b34da6fd98e06cb (diff) | |
| download | bcm5719-llvm-531c9a0c2772713f7cc89ef941628a6daa98ef92.tar.gz bcm5719-llvm-531c9a0c2772713f7cc89ef941628a6daa98ef92.zip | |
www tweaks to embiggen up our near-complete C++11 and C11 support.
llvm-svn: 176781
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/www/compatibility.html | 6 | ||||
| -rw-r--r-- | clang/www/cxx_status.html | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/clang/www/compatibility.html b/clang/www/compatibility.html index de864eda4f7..8bfaff191cb 100644 --- a/clang/www/compatibility.html +++ b/clang/www/compatibility.html @@ -19,10 +19,10 @@ <h1>Language Compatibility</h1> <!-- ======================================================================= --> -<p>Clang strives to both conform to current language standards (C99, - C++98) and also to implement many widely-used extensions available +<p>Clang strives to both conform to current language standards (up to C11 + and C++11) and also to implement many widely-used extensions available in other compilers, so that most correct code will "just work" when - compiler with Clang. However, Clang is more strict than other + compiled with Clang. However, Clang is more strict than other popular compilers, and may reject incorrect code that other compilers allow. This page documents common compatibility and portability issues with Clang to help you understand and fix the diff --git a/clang/www/cxx_status.html b/clang/www/cxx_status.html index 1c23ff356aa..f063ca9a256 100644 --- a/clang/www/cxx_status.html +++ b/clang/www/cxx_status.html @@ -38,9 +38,11 @@ <p>Clang provides support for a number of features included in the new <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=50372">ISO C++ Standard, ISO/IEC 14882:2011</a>. The following table describes which C++11 features have been implemented in Clang and in which Clang versions they became available.</p> -<p>You can use Clang in C++11 mode either -with <a href="http://libcxx.llvm.org/">libc++</a> or with gcc's libstdc++. -Patches are needed to make <a href="libstdc++4.4-clang0x.patch">libstdc++-4.4</a> +<p>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 +<code>-std=c++11</code> option. Clang's C++11 mode can be used +with <a href="http://libcxx.llvm.org/">libc++</a> or with gcc's libstdc++, but +patches are needed to make <a href="libstdc++4.4-clang0x.patch">libstdc++-4.4</a> work with Clang in C++11 mode. Patches are also needed to make <a href="libstdc++4.6-clang11.patch">libstdc++-4.6</a>, and <a href="libstdc++4.7-clang11.patch">libstdc++-4.7</a> work with Clang |

