]> granicus.if.org Git - clang/commitdiff
C1X is now C11, add -std=c11 and -std=gnu11 as aliases for the c1x arguments.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 23 Dec 2011 15:28:31 +0000 (15:28 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 23 Dec 2011 15:28:31 +0000 (15:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147220 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Frontend/LangStandards.def

index c82290b20d675581bc6092abb71e0691c29b1c79..edac6cfe8dc68f5c52f91e67ba87381b5cc511b3 100644 (file)
@@ -62,16 +62,25 @@ LANGSTANDARD(gnu9x, "gnu9x",
              "ISO C 1999 with GNU extensions",
              BCPLComment | C99 | Digraphs | GNUMode | HexFloat)
 
-// C1X modes
+// C11 modes
+LANGSTANDARD(c11, "c11",
+             "ISO C 2011",
+             BCPLComment | C99 | C1X | Digraphs | HexFloat)
 LANGSTANDARD(c1x, "c1x",
-             "ISO C 201X",
+             "ISO C 2011",
+             BCPLComment | C99 | C1X | Digraphs | HexFloat)
+LANGSTANDARD(iso9899_2011,
+             "iso9899:2011", "ISO C 2011",
              BCPLComment | C99 | C1X | Digraphs | HexFloat)
 LANGSTANDARD(iso9899_201x,
-             "iso9899:201x", "ISO C 201X",
+             "iso9899:2011", "ISO C 2011",
              BCPLComment | C99 | C1X | Digraphs | HexFloat)
 
+LANGSTANDARD(gnu11, "gnu11",
+             "ISO C 2011 with GNU extensions",
+             BCPLComment | C99 | C1X | Digraphs | GNUMode | HexFloat)
 LANGSTANDARD(gnu1x, "gnu1x",
-             "ISO C 201X with GNU extensions",
+             "ISO C 2011 with GNU extensions",
              BCPLComment | C99 | C1X | Digraphs | GNUMode | HexFloat)
 
 // C++ modes