aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/clang/include/clang/Basic/LangStandard.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/clang/include/clang/Basic/LangStandard.h')
-rw-r--r--contrib/llvm-project/clang/include/clang/Basic/LangStandard.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/contrib/llvm-project/clang/include/clang/Basic/LangStandard.h b/contrib/llvm-project/clang/include/clang/Basic/LangStandard.h
index ad7f7510b234..f82ce05a6369 100644
--- a/contrib/llvm-project/clang/include/clang/Basic/LangStandard.h
+++ b/contrib/llvm-project/clang/include/clang/Basic/LangStandard.h
@@ -49,11 +49,12 @@ enum LangFeatures {
CPlusPlus14 = (1 << 7),
CPlusPlus17 = (1 << 8),
CPlusPlus20 = (1 << 9),
- Digraphs = (1 << 10),
- GNUMode = (1 << 11),
- HexFloat = (1 << 12),
- ImplicitInt = (1 << 13),
- OpenCL = (1 << 14)
+ CPlusPlus2b = (1 << 10),
+ Digraphs = (1 << 11),
+ GNUMode = (1 << 12),
+ HexFloat = (1 << 13),
+ ImplicitInt = (1 << 14),
+ OpenCL = (1 << 15)
};
/// LangStandard - Information about the properties of a particular language
@@ -111,6 +112,9 @@ public:
/// isCPlusPlus20 - Language is a C++20 variant (or later).
bool isCPlusPlus20() const { return Flags & CPlusPlus20; }
+ /// isCPlusPlus2b - Language is a post-C++20 variant (or later).
+ bool isCPlusPlus2b() const { return Flags & CPlusPlus2b; }
+
/// hasDigraphs - Language supports digraphs.
bool hasDigraphs() const { return Flags & Digraphs; }