clang: clang::LangStandard Struct Reference (original) (raw)
LangStandard - Information about the properties of a particular language standard. More...
#include "[clang/Basic/LangStandard.h](LangStandard%5F8h%5Fsource.html)"
| Public Member Functions |
|
| const char * |
getName () const |
|
getName - Get the name of this standard. |
| const char * |
getDescription () const |
|
getDescription - Get the description of this standard. |
| clang::Language |
getLanguage () const |
|
Get the language that this standard describes. |
| std::optional< uint32_t > |
getVersion () const |
|
Get the version code for this language standard. |
| bool |
hasLineComments () const |
|
Language supports '//' comments. |
| bool |
isC99 () const |
|
isC99 - Language is a superset of C99. |
| bool |
isC11 () const |
|
isC11 - Language is a superset of C11. |
| bool |
isC17 () const |
|
isC17 - Language is a superset of C17. |
| bool |
isC23 () const |
|
isC23 - Language is a superset of C23. |
| bool |
isC2y () const |
|
isC2y - Language is a superset of C2y. |
| bool |
isCPlusPlus () const |
|
isCPlusPlus - Language is a C++ variant. |
| bool |
isCPlusPlus11 () const |
|
isCPlusPlus11 - Language is a C++11 variant (or later). |
| bool |
isCPlusPlus14 () const |
|
isCPlusPlus14 - Language is a C++14 variant (or later). |
| bool |
isCPlusPlus17 () const |
|
isCPlusPlus17 - Language is a C++17 variant (or later). |
| bool |
isCPlusPlus20 () const |
|
isCPlusPlus20 - Language is a C++20 variant (or later). |
| bool |
isCPlusPlus23 () const |
|
isCPlusPlus23 - Language is a post-C++23 variant (or later). |
| bool |
isCPlusPlus26 () const |
|
isCPlusPlus26 - Language is a post-C++26 variant (or later). |
| bool |
hasDigraphs () const |
|
hasDigraphs - Language supports digraphs. |
| bool |
hasRawStringLiterals () const |
|
hasRawStringLiterals - Language supports R"()" raw string literals. |
| bool |
isGNUMode () const |
|
isGNUMode - Language includes GNU extensions. |
| bool |
hasHexFloats () const |
|
hasHexFloats - Language supports hexadecimal float constants. |
| bool |
isOpenCL () const |
|
isOpenCL - Language is a OpenCL variant. |
LangStandard - Information about the properties of a particular language standard.
Definition at line 71 of file LangStandard.h.
◆ Kind
◆ getDescription()
| const char * clang::LangStandard::getDescription ( ) const |
inline |
◆ getHLSLLangKind()
◆ getLangKind()
◆ getLangStandardForKind()
◆ getLangStandardForName()
| const LangStandard * LangStandard::getLangStandardForName ( StringRef Name) |
static |
◆ getLanguage()
◆ getName()
| const char * clang::LangStandard::getName ( ) const |
inline |
◆ getVersion()
| std::optional< uint32_t > clang::LangStandard::getVersion ( ) const |
inline |
◆ hasDigraphs()
| bool clang::LangStandard::hasDigraphs ( ) const |
inline |
◆ hasHexFloats()
| bool clang::LangStandard::hasHexFloats ( ) const |
inline |
| bool clang::LangStandard::hasLineComments ( ) const |
inline |
◆ hasRawStringLiterals()
| bool clang::LangStandard::hasRawStringLiterals ( ) const |
inline |
◆ isC11()
| bool clang::LangStandard::isC11 ( ) const |
inline |
◆ isC17()
| bool clang::LangStandard::isC17 ( ) const |
inline |
◆ isC23()
| bool clang::LangStandard::isC23 ( ) const |
inline |
◆ isC2y()
| bool clang::LangStandard::isC2y ( ) const |
inline |
◆ isC99()
| bool clang::LangStandard::isC99 ( ) const |
inline |
◆ isCPlusPlus()
| bool clang::LangStandard::isCPlusPlus ( ) const |
inline |
◆ isCPlusPlus11()
| bool clang::LangStandard::isCPlusPlus11 ( ) const |
inline |
◆ isCPlusPlus14()
| bool clang::LangStandard::isCPlusPlus14 ( ) const |
inline |
◆ isCPlusPlus17()
| bool clang::LangStandard::isCPlusPlus17 ( ) const |
inline |
◆ isCPlusPlus20()
| bool clang::LangStandard::isCPlusPlus20 ( ) const |
inline |
◆ isCPlusPlus23()
| bool clang::LangStandard::isCPlusPlus23 ( ) const |
inline |
◆ isCPlusPlus26()
| bool clang::LangStandard::isCPlusPlus26 ( ) const |
inline |
◆ isGNUMode()
| bool clang::LangStandard::isGNUMode ( ) const |
inline |
◆ isOpenCL()
| bool clang::LangStandard::isOpenCL ( ) const |
inline |
◆ Description
const char* clang::LangStandard::Description
◆ Flags
Definition at line 80 of file LangStandard.h.
Referenced by hasDigraphs(), hasHexFloats(), hasLineComments(), isC11(), isC17(), isC23(), isC2y(), isC99(), isCPlusPlus(), isCPlusPlus11(), isCPlusPlus14(), isCPlusPlus17(), isCPlusPlus20(), isCPlusPlus23(), isCPlusPlus26(), isGNUMode(), and isOpenCL().
◆ Language
◆ ShortName
const char* clang::LangStandard::ShortName
◆ Version
std::optional<uint32_t> clang::LangStandard::Version
The documentation for this struct was generated from the following files: