]> granicus.if.org Git - clang/commitdiff
Add -std=c++11 and -std=gnu++11 language flags, from Ahmed Charles
authorDouglas Gregor <dgregor@apple.com>
Wed, 12 Oct 2011 17:32:39 +0000 (17:32 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 12 Oct 2011 17:32:39 +0000 (17:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141785 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Frontend/LangStandards.def

index 6055ad51828e97db27266371a5a8595886b99d4a..22229b291694a3b7c9a176ffa25b7b9febd32896 100644 (file)
@@ -80,10 +80,16 @@ LANGSTANDARD(gnucxx98, "gnu++98",
              BCPLComment | CPlusPlus | Digraphs | GNUMode)
 
 LANGSTANDARD(cxx0x, "c++0x",
-             "Upcoming ISO C++ 200x with amendments",
+             "ISO C++ 2011 with amendments",
+             BCPLComment | CPlusPlus | CPlusPlus0x | Digraphs)
+LANGSTANDARD(cxx11, "c++11",
+             "ISO C++ 2011 with amendments",
              BCPLComment | CPlusPlus | CPlusPlus0x | Digraphs)
 LANGSTANDARD(gnucxx0x, "gnu++0x",
-             "Upcoming ISO C++ 200x with amendments and GNU extensions",
+             "ISO C++ 2011 with amendments and GNU extensions",
+             BCPLComment | CPlusPlus | CPlusPlus0x | Digraphs | GNUMode)
+LANGSTANDARD(gnucxx11, "gnu++11",
+             "ISO C++ 2011 with amendments and GNU extensions",
              BCPLComment | CPlusPlus | CPlusPlus0x | Digraphs | GNUMode)
 
 // OpenCL