class CallableWhenAttr

Declaration

class CallableWhenAttr : public InheritableAttr { /* full declaration omitted */ };

Description

Attr - This represents one attribute.

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2712

Inherits from: InheritableAttr

Member Variables

private unsigned int callableStates_Size
private clang::CallableWhenAttr::ConsumedState* callableStates_

Inherited from Attr:

protected Inherited
protected IsPackExpansion
protected Implicit
protected IsLateParsed
protected InheritEvenIfAlreadyPresent

Inherited from AttributeCommonInfo:

protected static SpellingNotCalculated = 15

Method Overview

  • public CallableWhenAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::CallableWhenAttr::ConsumedState * CallableStates, unsigned int CallableStatesSize)
  • public CallableWhenAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo)
  • public static const char * ConvertConsumedStateToStr(clang::CallableWhenAttr::ConsumedState Val)
  • public static bool ConvertStrToConsumedState(llvm::StringRef Val, clang::CallableWhenAttr::ConsumedState & Out)
  • public static clang::CallableWhenAttr * Create(clang::ASTContext & Ctx, clang::CallableWhenAttr::ConsumedState * CallableStates, unsigned int CallableStatesSize, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::CallableWhenAttr * Create(clang::ASTContext & Ctx, clang::CallableWhenAttr::ConsumedState * CallableStates, unsigned int CallableStatesSize, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::CallableWhenAttr * CreateImplicit(clang::ASTContext & Ctx, clang::CallableWhenAttr::ConsumedState * CallableStates, unsigned int CallableStatesSize, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::CallableWhenAttr * CreateImplicit(clang::ASTContext & Ctx, clang::CallableWhenAttr::ConsumedState * CallableStates, unsigned int CallableStatesSize, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public llvm::iterator_range<callableStates_iterator> callableStates() const
  • public clang::CallableWhenAttr::callableStates_iterator callableStates_begin() const
  • public clang::CallableWhenAttr::callableStates_iterator callableStates_end() const
  • public unsigned int callableStates_size() const
  • public static bool classof(const clang::Attr * A)
  • public clang::CallableWhenAttr * clone(clang::ASTContext & C) const
  • public const char * getSpelling() const
  • public void printPretty(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const

Inherited from InheritableAttr:

Inherited from Attr:

Inherited from AttributeCommonInfo:

Methods

CallableWhenAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    clang::CallableWhenAttr::ConsumedState*
        CallableStates,
    unsigned int CallableStatesSize)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2738

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
clang::CallableWhenAttr::ConsumedState* CallableStates
unsigned int CallableStatesSize

CallableWhenAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2741

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo

static const char* ConvertConsumedStateToStr(
    clang::CallableWhenAttr::ConsumedState Val)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2756

Parameters

clang::CallableWhenAttr::ConsumedState Val

static bool ConvertStrToConsumedState(
    llvm::StringRef Val,
    clang::CallableWhenAttr::ConsumedState& Out)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2755

Parameters

llvm::StringRef Val
clang::CallableWhenAttr::ConsumedState& Out

static clang::CallableWhenAttr* Create(
    clang::ASTContext& Ctx,
    clang::CallableWhenAttr::ConsumedState*
        CallableStates,
    unsigned int CallableStatesSize,
    const clang::AttributeCommonInfo& CommonInfo)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2733

Parameters

clang::ASTContext& Ctx
clang::CallableWhenAttr::ConsumedState* CallableStates
unsigned int CallableStatesSize
const clang::AttributeCommonInfo& CommonInfo

static clang::CallableWhenAttr* Create(
    clang::ASTContext& Ctx,
    clang::CallableWhenAttr::ConsumedState*
        CallableStates,
    unsigned int CallableStatesSize,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2735

Parameters

clang::ASTContext& Ctx
clang::CallableWhenAttr::ConsumedState* CallableStates
unsigned int CallableStatesSize
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

static clang::CallableWhenAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::CallableWhenAttr::ConsumedState*
        CallableStates,
    unsigned int CallableStatesSize,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2732

Parameters

clang::ASTContext& Ctx
clang::CallableWhenAttr::ConsumedState* CallableStates
unsigned int CallableStatesSize
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

static clang::CallableWhenAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::CallableWhenAttr::ConsumedState*
        CallableStates,
    unsigned int CallableStatesSize,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2734

Parameters

clang::ASTContext& Ctx
clang::CallableWhenAttr::ConsumedState* CallableStates
unsigned int CallableStatesSize
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

llvm::iterator_range<callableStates_iterator>
callableStates() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2752

clang::CallableWhenAttr::callableStates_iterator
callableStates_begin() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2749

clang::CallableWhenAttr::callableStates_iterator
callableStates_end() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2750

unsigned int callableStates_size() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2751

static bool classof(const clang::Attr* A)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2759

Parameters

const clang::Attr* A

clang::CallableWhenAttr* clone(
    clang::ASTContext& C) const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2744

Parameters

clang::ASTContext& C

const char* getSpelling() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2747

void printPretty(
    llvm::raw_ostream& OS,
    const clang::PrintingPolicy& Policy) const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:2745

Parameters

llvm::raw_ostream& OS
const clang::PrintingPolicy& Policy