class PreferredNameAttr

Declaration

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

Description

Attr - This represents one attribute.

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

Inherits from: InheritableAttr

Member Variables

private clang::TypeSourceInfo* typedefType

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::PreferredNameAttr * Create(clang::ASTContext & Ctx, clang::TypeSourceInfo * TypedefType, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::PreferredNameAttr * Create(clang::ASTContext & Ctx, clang::TypeSourceInfo * TypedefType, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::PreferredNameAttr * CreateImplicit(clang::ASTContext & Ctx, clang::TypeSourceInfo * TypedefType, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::PreferredNameAttr * CreateImplicit(clang::ASTContext & Ctx, clang::TypeSourceInfo * TypedefType, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public PreferredNameAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::TypeSourceInfo * TypedefType)
  • public static bool classof(const clang::Attr * A)
  • public clang::PreferredNameAttr * clone(clang::ASTContext & C) const
  • public const char * getSpelling() const
  • public clang::QualType getTypedefType() const
  • public clang::TypeSourceInfo * getTypedefTypeLoc() 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::PreferredNameAttr* Create(
    clang::ASTContext& Ctx,
    clang::TypeSourceInfo* TypedefType,
    const clang::AttributeCommonInfo& CommonInfo)

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

Parameters

clang::ASTContext& Ctx
clang::TypeSourceInfo* TypedefType
const clang::AttributeCommonInfo& CommonInfo

static clang::PreferredNameAttr* Create(
    clang::ASTContext& Ctx,
    clang::TypeSourceInfo* TypedefType,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::TypeSourceInfo* TypedefType
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

static clang::PreferredNameAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::TypeSourceInfo* TypedefType,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

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

Parameters

clang::ASTContext& Ctx
clang::TypeSourceInfo* TypedefType
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

static clang::PreferredNameAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::TypeSourceInfo* TypedefType,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

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

Parameters

clang::ASTContext& Ctx
clang::TypeSourceInfo* TypedefType
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

PreferredNameAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    clang::TypeSourceInfo* TypedefType)

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

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
clang::TypeSourceInfo* TypedefType

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

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

Parameters

const clang::Attr* A

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

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

Parameters

clang::ASTContext& C

const char* getSpelling() const

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

clang::QualType getTypedefType() const

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

clang::TypeSourceInfo* getTypedefTypeLoc() const

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

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

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

Parameters

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