clang 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::AttributeCommonInfo::Form Class Reference

Combines information about the source-code form of an attribute, including its syntax and spelling. More...

#include "clang/Basic/AttributeCommonInfo.h"

Public Member Functions

constexpr Form (Syntax SyntaxUsed, unsigned SpellingIndex, bool IsAlignas, bool IsRegularKeywordAttribute)
 
constexpr Form (tok::TokenKind Tok)
 
Syntax getSyntax () const
 
unsigned getSpellingIndex () const
 
bool isAlignas () const
 
bool isRegularKeywordAttribute () const
 

Static Public Member Functions

static Form GNU ()
 
static Form CXX11 ()
 
static Form C23 ()
 
static Form Declspec ()
 
static Form Microsoft ()
 
static Form Keyword (bool IsAlignas, bool IsRegularKeywordAttribute)
 
static Form Pragma ()
 
static Form ContextSensitiveKeyword ()
 
static Form HLSLAnnotation ()
 
static Form Implicit ()
 

Detailed Description

Combines information about the source-code form of an attribute, including its syntax and spelling.

Definition at line 95 of file AttributeCommonInfo.h.

Constructor & Destructor Documentation

◆ Form() [1/2]

constexpr clang::AttributeCommonInfo::Form::Form ( Syntax  SyntaxUsed,
unsigned  SpellingIndex,
bool  IsAlignas,
bool  IsRegularKeywordAttribute 
)
inlineconstexpr

Definition at line 97 of file AttributeCommonInfo.h.

◆ Form() [2/2]

constexpr clang::AttributeCommonInfo::Form::Form ( tok::TokenKind  Tok)
inlineconstexpr

Definition at line 102 of file AttributeCommonInfo.h.

Member Function Documentation

◆ C23()

static Form clang::AttributeCommonInfo::Form::C23 ( )
inlinestatic

Definition at line 114 of file AttributeCommonInfo.h.

References clang::AttributeCommonInfo::AS_C23.

◆ ContextSensitiveKeyword()

static Form clang::AttributeCommonInfo::Form::ContextSensitiveKeyword ( )
inlinestatic

◆ CXX11()

static Form clang::AttributeCommonInfo::Form::CXX11 ( )
inlinestatic

Definition at line 113 of file AttributeCommonInfo.h.

References clang::AttributeCommonInfo::AS_CXX11.

◆ Declspec()

static Form clang::AttributeCommonInfo::Form::Declspec ( )
inlinestatic

Definition at line 115 of file AttributeCommonInfo.h.

References clang::AttributeCommonInfo::AS_Declspec.

◆ getSpellingIndex()

unsigned clang::AttributeCommonInfo::Form::getSpellingIndex ( ) const
inline

Definition at line 108 of file AttributeCommonInfo.h.

◆ getSyntax()

Syntax clang::AttributeCommonInfo::Form::getSyntax ( ) const
inline

Definition at line 107 of file AttributeCommonInfo.h.

◆ GNU()

static Form clang::AttributeCommonInfo::Form::GNU ( )
inlinestatic

Definition at line 112 of file AttributeCommonInfo.h.

References clang::AttributeCommonInfo::AS_GNU.

◆ HLSLAnnotation()

static Form clang::AttributeCommonInfo::Form::HLSLAnnotation ( )
inlinestatic

◆ Implicit()

static Form clang::AttributeCommonInfo::Form::Implicit ( )
inlinestatic

Definition at line 124 of file AttributeCommonInfo.h.

References clang::AttributeCommonInfo::AS_Implicit.

◆ isAlignas()

bool clang::AttributeCommonInfo::Form::isAlignas ( ) const
inline

Definition at line 109 of file AttributeCommonInfo.h.

◆ isRegularKeywordAttribute()

bool clang::AttributeCommonInfo::Form::isRegularKeywordAttribute ( ) const
inline

Definition at line 110 of file AttributeCommonInfo.h.

◆ Keyword()

static Form clang::AttributeCommonInfo::Form::Keyword ( bool  IsAlignas,
bool  IsRegularKeywordAttribute 
)
inlinestatic

◆ Microsoft()

static Form clang::AttributeCommonInfo::Form::Microsoft ( )
inlinestatic

Definition at line 116 of file AttributeCommonInfo.h.

References clang::AttributeCommonInfo::AS_Microsoft.

◆ Pragma()

static Form clang::AttributeCommonInfo::Form::Pragma ( )
inlinestatic

The documentation for this class was generated from the following file: