diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-12-23 15:28:31 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-12-23 15:28:31 +0000 |
| commit | 6784aeb9ef96e5735850fa7226ed0cb45cb82e75 (patch) | |
| tree | 592838ab2c6e284c2c1f46a2d7b88ff24921c01a | |
| parent | 235a365d58a634014190fd2f3baa6a7319c5ee0e (diff) | |
| download | bcm5719-llvm-6784aeb9ef96e5735850fa7226ed0cb45cb82e75.tar.gz bcm5719-llvm-6784aeb9ef96e5735850fa7226ed0cb45cb82e75.zip | |
C1X is now C11, add -std=c11 and -std=gnu11 as aliases for the c1x arguments.
llvm-svn: 147220
| -rw-r--r-- | clang/include/clang/Frontend/LangStandards.def | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/clang/include/clang/Frontend/LangStandards.def b/clang/include/clang/Frontend/LangStandards.def index c82290b20d6..edac6cfe8dc 100644 --- a/clang/include/clang/Frontend/LangStandards.def +++ b/clang/include/clang/Frontend/LangStandards.def @@ -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 |

