Go to the documentation of this file.
9 #ifndef LLVM_CLANG_BASIC_LANGSTANDARD_H
10 #define LLVM_CLANG_BASIC_LANGSTANDARD_H
13 #include "llvm/ADT/StringRef.h"
70 #define LANGSTANDARD(id, name, lang, desc, features) \
72 #include "clang/Basic/LangStandards.def"
142 const llvm::Triple &T);
YAML serialization mapping.
bool isC99() const
isC99 - Language is a superset of C99.
bool isCPlusPlus14() const
isCPlusPlus14 - Language is a C++14 variant (or later).
bool hasDigraphs() const
hasDigraphs - Language supports digraphs.
@ Asm
Assembly: we accept this only so that we can preprocess it.
bool isOpenCL() const
isOpenCL - Language is a OpenCL variant.
bool isCPlusPlus2b() const
isCPlusPlus2b - Language is a post-C++20 variant (or later).
static Kind getLangKind(StringRef Name)
const char * getName() const
getName - Get the name of this standard.
bool hasLineComments() const
Language supports '//' comments.
bool hasHexFloats() const
hasHexFloats - Language supports hexadecimal float constants.
bool isCPlusPlus() const
isCPlusPlus - Language is a C++ variant.
@ C
Languages that the frontend can parse and compile.
bool isCPlusPlus20() const
isCPlusPlus20 - Language is a C++20 variant (or later).
bool isC2x() const
isC2x - Language is a superset of C2x.
Language
The language for the input, used to select and validate the language standard and possible actions.
bool isCPlusPlus11() const
isCPlusPlus11 - Language is a C++11 variant (or later).
bool isC11() const
isC11 - Language is a superset of C11.
clang::Language getLanguage() const
Get the language that this standard describes.
@ LLVM_IR
LLVM IR: we accept this so that we can run the optimizer on it, and compile it to assembly or object ...
static const LangStandard * getLangStandardForName(StringRef Name)
bool isC17() const
isC17 - Language is a superset of C17.
LangStandard - Information about the properties of a particular language standard.
LangStandard::Kind getDefaultLanguageStandard(clang::Language Lang, const llvm::Triple &T)
bool isCPlusPlus17() const
isCPlusPlus17 - Language is a C++17 variant (or later).
bool isGNUMode() const
isGNUMode - Language includes GNU extensions.
const char * getDescription() const
getDescription - Get the description of this standard.
static const LangStandard & getLangStandardForKind(Kind K)