clang
6.0.0
|
LangStandard - Information about the properties of a particular language standard. More...
#include "clang/Frontend/LangStandard.h"
Public Types | |
enum | Kind { lang_unspecified } |
Public Member Functions | |
const char * | getName () const |
getName - Get the name of this standard. More... | |
const char * | getDescription () const |
getDescription - Get the description of this standard. More... | |
InputKind::Language | getLanguage () const |
Get the language that this standard describes. More... | |
bool | hasLineComments () const |
Language supports '//' comments. More... | |
bool | isC99 () const |
isC99 - Language is a superset of C99. More... | |
bool | isC11 () const |
isC11 - Language is a superset of C11. More... | |
bool | isC17 () const |
isC17 - Language is a superset of C17. More... | |
bool | isCPlusPlus () const |
isCPlusPlus - Language is a C++ variant. More... | |
bool | isCPlusPlus11 () const |
isCPlusPlus11 - Language is a C++11 variant (or later). More... | |
bool | isCPlusPlus14 () const |
isCPlusPlus14 - Language is a C++14 variant (or later). More... | |
bool | isCPlusPlus17 () const |
isCPlusPlus17 - Language is a C++17 variant (or later). More... | |
bool | isCPlusPlus2a () const |
isCPlusPlus2a - Language is a post-C++17 variant (or later). More... | |
bool | hasDigraphs () const |
hasDigraphs - Language supports digraphs. More... | |
bool | isGNUMode () const |
isGNUMode - Language includes GNU extensions. More... | |
bool | hasHexFloats () const |
hasHexFloats - Language supports hexadecimal float constants. More... | |
bool | hasImplicitInt () const |
hasImplicitInt - Language allows variables to be typed as int implicitly. More... | |
bool | isOpenCL () const |
isOpenCL - Language is a OpenCL variant. More... | |
Static Public Member Functions | |
static const LangStandard & | getLangStandardForKind (Kind K) |
static const LangStandard * | getLangStandardForName (StringRef Name) |
Public Attributes | |
const char * | ShortName |
const char * | Description |
unsigned | Flags |
InputKind::Language | Language |
LangStandard - Information about the properties of a particular language standard.
Definition at line 42 of file LangStandard.h.
Enumerator | |
---|---|
lang_unspecified |
Definition at line 43 of file LangStandard.h.
|
inline |
getDescription - Get the description of this standard.
Definition at line 60 of file LangStandard.h.
Referenced by ParseLangArgs().
|
static |
Definition at line 20 of file LangStandards.cpp.
Referenced by ParseLangArgs(), and clang::CompilerInvocation::setLangDefaults().
|
static |
Definition at line 31 of file LangStandards.cpp.
|
inline |
Get the language that this standard describes.
Definition at line 63 of file LangStandard.h.
|
inline |
getName - Get the name of this standard.
Definition at line 57 of file LangStandard.h.
Referenced by ParseLangArgs().
|
inline |
hasDigraphs - Language supports digraphs.
Definition at line 94 of file LangStandard.h.
References clang::frontend::Digraphs.
Referenced by clang::CompilerInvocation::setLangDefaults().
|
inline |
hasHexFloats - Language supports hexadecimal float constants.
Definition at line 100 of file LangStandard.h.
References clang::frontend::HexFloat.
Referenced by clang::CompilerInvocation::setLangDefaults().
|
inline |
hasImplicitInt - Language allows variables to be typed as int implicitly.
Definition at line 103 of file LangStandard.h.
References clang::frontend::ImplicitInt.
Referenced by clang::CompilerInvocation::setLangDefaults().
|
inline |
Language supports '//' comments.
Definition at line 66 of file LangStandard.h.
References clang::frontend::LineComment.
Referenced by clang::CompilerInvocation::setLangDefaults().
|
inline |
isC11 - Language is a superset of C11.
Definition at line 72 of file LangStandard.h.
References clang::frontend::C11.
Referenced by clang::CompilerInvocation::setLangDefaults().
|
inline |
isC17 - Language is a superset of C17.
Definition at line 75 of file LangStandard.h.
References clang::frontend::C17.
Referenced by clang::CompilerInvocation::setLangDefaults().
|
inline |
isC99 - Language is a superset of C99.
Definition at line 69 of file LangStandard.h.
References clang::frontend::C99.
Referenced by clang::CompilerInvocation::setLangDefaults().
|
inline |
isCPlusPlus - Language is a C++ variant.
Definition at line 78 of file LangStandard.h.
References clang::frontend::CPlusPlus.
Referenced by clang::CompilerInvocation::setLangDefaults().
|
inline |
isCPlusPlus11 - Language is a C++11 variant (or later).
Definition at line 81 of file LangStandard.h.
References clang::frontend::CPlusPlus11.
Referenced by clang::CompilerInvocation::setLangDefaults().
|
inline |
isCPlusPlus14 - Language is a C++14 variant (or later).
Definition at line 84 of file LangStandard.h.
References clang::frontend::CPlusPlus14.
Referenced by clang::CompilerInvocation::setLangDefaults().
|
inline |
isCPlusPlus17 - Language is a C++17 variant (or later).
Definition at line 87 of file LangStandard.h.
References clang::frontend::CPlusPlus17.
Referenced by clang::CompilerInvocation::setLangDefaults().
|
inline |
isCPlusPlus2a - Language is a post-C++17 variant (or later).
Definition at line 90 of file LangStandard.h.
References clang::frontend::CPlusPlus2a.
Referenced by clang::CompilerInvocation::setLangDefaults().
|
inline |
isGNUMode - Language includes GNU extensions.
Definition at line 97 of file LangStandard.h.
References clang::frontend::GNUMode.
Referenced by clang::CompilerInvocation::setLangDefaults().
|
inline |
isOpenCL - Language is a OpenCL variant.
Definition at line 106 of file LangStandard.h.
References clang::frontend::OpenCL.
Referenced by clang::CompilerInvocation::setLangDefaults().
const char* clang::LangStandard::Description |
Definition at line 51 of file LangStandard.h.
unsigned clang::LangStandard::Flags |
Definition at line 52 of file LangStandard.h.
InputKind::Language clang::LangStandard::Language |
Definition at line 53 of file LangStandard.h.
const char* clang::LangStandard::ShortName |
Definition at line 50 of file LangStandard.h.