[cfe-commits] r147220 - /cfe/trunk/include/clang/Frontend/LangStandards.def
Benjamin Kramer
benny.kra at googlemail.com
Fri Dec 23 07:28:31 PST 2011
Author: d0k
Date: Fri Dec 23 09:28:31 2011
New Revision: 147220
URL: http://llvm.org/viewvc/llvm-project?rev=147220&view=rev
Log:
C1X is now C11, add -std=c11 and -std=gnu11 as aliases for the c1x arguments.
Modified:
cfe/trunk/include/clang/Frontend/LangStandards.def
Modified: cfe/trunk/include/clang/Frontend/LangStandards.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/LangStandards.def?rev=147220&r1=147219&r2=147220&view=diff
==============================================================================
--- cfe/trunk/include/clang/Frontend/LangStandards.def (original)
+++ cfe/trunk/include/clang/Frontend/LangStandards.def Fri Dec 23 09:28:31 2011
@@ -62,16 +62,25 @@
"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
More information about the cfe-commits
mailing list