diff options
Diffstat (limited to 'include/clang/Frontend/LangStandard.h')
-rw-r--r-- | include/clang/Frontend/LangStandard.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/clang/Frontend/LangStandard.h b/include/clang/Frontend/LangStandard.h index 8021d08942e5..5ead90f00721 100644 --- a/include/clang/Frontend/LangStandard.h +++ b/include/clang/Frontend/LangStandard.h @@ -29,7 +29,8 @@ enum LangFeatures { Digraphs = (1 << 8), GNUMode = (1 << 9), HexFloat = (1 << 10), - ImplicitInt = (1 << 11) + ImplicitInt = (1 << 11), + OpenCL = (1 << 12) }; } @@ -91,6 +92,9 @@ public: /// hasImplicitInt - Language allows variables to be typed as int implicitly. bool hasImplicitInt() const { return Flags & frontend::ImplicitInt; } + /// isOpenCL - Language is a OpenCL variant. + bool isOpenCL() const { return Flags & frontend::OpenCL; } + static const LangStandard &getLangStandardForKind(Kind K); static const LangStandard *getLangStandardForName(StringRef Name); }; |