class PtGuardedByAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private clang::Expr* arg

Inherited from Attr:

protected Inherited
protected IsPackExpansion
protected Implicit
protected IsLateParsed
protected InheritEvenIfAlreadyPresent

Inherited from AttributeCommonInfo:

protected static SpellingNotCalculated = 15

Method Overview

  • public static clang::PtGuardedByAttr * Create(clang::ASTContext & Ctx, clang::Expr * Arg, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::PtGuardedByAttr * Create(clang::ASTContext & Ctx, clang::Expr * Arg, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::PtGuardedByAttr * CreateImplicit(clang::ASTContext & Ctx, clang::Expr * Arg, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::PtGuardedByAttr * CreateImplicit(clang::ASTContext & Ctx, clang::Expr * Arg, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public PtGuardedByAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::Expr * Arg)
  • public static bool classof(const clang::Attr * A)
  • public clang::PtGuardedByAttr * clone(clang::ASTContext & C) const
  • public clang::Expr * getArg() 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

static clang::PtGuardedByAttr* Create(
    clang::ASTContext& Ctx,
    clang::Expr* Arg,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
clang::Expr* Arg
const clang::AttributeCommonInfo& CommonInfo

static clang::PtGuardedByAttr* Create(
    clang::ASTContext& Ctx,
    clang::Expr* Arg,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::Expr* Arg
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

static clang::PtGuardedByAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::Expr* Arg,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

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

Parameters

clang::ASTContext& Ctx
clang::Expr* Arg
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

static clang::PtGuardedByAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::Expr* Arg,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::Expr* Arg
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

PtGuardedByAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    clang::Expr* Arg)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
clang::Expr* Arg

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

clang::Expr* getArg() const

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

const char* getSpelling() const

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

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

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

Parameters

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