diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-10-17 23:07:52 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-10-17 23:07:52 +0000 |
commit | 5ba49c0177bd594a9760956f51293b5731b03d6d (patch) | |
tree | 484e0e2a4294c4b6dfc53d0931e6e5bb342884dd /include/clang/Frontend | |
parent | 1bfb00dabf83d8c8b95b7276b4c0ae3fd64832c8 (diff) |
Add -std=c++1y argument, for *highly* experimental C++14 support.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend')
-rw-r--r-- | include/clang/Frontend/LangStandard.h | 12 | ||||
-rw-r--r-- | include/clang/Frontend/LangStandards.def | 8 |
2 files changed, 16 insertions, 4 deletions
diff --git a/include/clang/Frontend/LangStandard.h b/include/clang/Frontend/LangStandard.h index e6f44032ac..a9789158cd 100644 --- a/include/clang/Frontend/LangStandard.h +++ b/include/clang/Frontend/LangStandard.h @@ -24,10 +24,11 @@ enum LangFeatures { C11 = (1 << 3), CPlusPlus = (1 << 4), CPlusPlus0x = (1 << 5), - Digraphs = (1 << 6), - GNUMode = (1 << 7), - HexFloat = (1 << 8), - ImplicitInt = (1 << 9) + CPlusPlus1y = (1 << 6), + Digraphs = (1 << 7), + GNUMode = (1 << 8), + HexFloat = (1 << 9), + ImplicitInt = (1 << 10) }; } @@ -71,6 +72,9 @@ public: /// isCPlusPlus0x - Language is a C++0x variant. bool isCPlusPlus0x() const { return Flags & frontend::CPlusPlus0x; } + /// isCPlusPlus1y - Language is a C++1y variant. + bool isCPlusPlus1y() const { return Flags & frontend::CPlusPlus1y; } + /// hasDigraphs - Language supports digraphs. bool hasDigraphs() const { return Flags & frontend::Digraphs; } diff --git a/include/clang/Frontend/LangStandards.def b/include/clang/Frontend/LangStandards.def index a604d4bff6..a6b846cc87 100644 --- a/include/clang/Frontend/LangStandards.def +++ b/include/clang/Frontend/LangStandards.def @@ -107,6 +107,14 @@ LANGSTANDARD(gnucxx11, "gnu++11", "ISO C++ 2011 with amendments and GNU extensions", BCPLComment | CPlusPlus | CPlusPlus0x | Digraphs | GNUMode) +LANGSTANDARD(cxx1y, "c++1y", + "Working draft for ISO C++ 2014", + BCPLComment | CPlusPlus | CPlusPlus0x | CPlusPlus1y | Digraphs) +LANGSTANDARD(gnucxx1y, "gnu++1y", + "Working draft for ISO C++ 2014 with GNU extensions", + BCPLComment | CPlusPlus | CPlusPlus0x | CPlusPlus1y | Digraphs | + GNUMode) + // OpenCL LANGSTANDARD(opencl, "cl", "OpenCL 1.0", |