9 #ifndef LLVM_CLANG_BASIC_LANGSTANDARD_H 10 #define LLVM_CLANG_BASIC_LANGSTANDARD_H 13 #include "llvm/ADT/StringRef.h" 63 #define LANGSTANDARD(id, name, lang, desc, features) \ 65 #include "clang/Basic/LangStandards.def" 76 const char *
getName()
const {
return ShortName; }
129 static Kind getLangKind(StringRef Name);
131 static const LangStandard *getLangStandardForName(StringRef Name);
LangStandard - Information about the properties of a particular language standard.
bool hasDigraphs() const
hasDigraphs - Language supports digraphs.
bool isCPlusPlus14() const
isCPlusPlus14 - Language is a C++14 variant (or later).
bool hasLineComments() const
Language supports '//' comments.
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
bool isOpenCL() const
isOpenCL - Language is a OpenCL variant.
bool isCPlusPlus2a() const
isCPlusPlus2a - Language is a post-C++17 variant (or later).
bool isCPlusPlus() const
isCPlusPlus - Language is a C++ variant.
Languages that the frontend can parse and compile.
Language
The language for the input, used to select and validate the language standard and possible actions...
const char * getName() const
getName - Get the name of this standard.
bool isCPlusPlus11() const
isCPlusPlus11 - Language is a C++11 variant (or later).
clang::Language getLanguage() const
Get the language that this standard describes.
bool hasImplicitInt() const
hasImplicitInt - Language allows variables to be typed as int implicitly.
bool isC2x() const
isC2x - Language is a superset of C2x.
bool isC11() const
isC11 - Language is a superset of C11.
bool hasHexFloats() const
hasHexFloats - Language supports hexadecimal float constants.
Dataflow Directional Tag Classes.
bool isC17() const
isC17 - Language is a superset of C17.
bool isGNUMode() const
isGNUMode - Language includes GNU extensions.
Assembly: we accept this only so that we can preprocess it.
bool isC99() const
isC99 - Language is a superset of C99.
bool isCPlusPlus17() const
isCPlusPlus17 - Language is a C++17 variant (or later).
const char * getDescription() const
getDescription - Get the description of this standard.
LLVM IR: we accept this so that we can run the optimizer on it, and compile it to assembly or object ...