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:
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:
- public clone
- public getDocumentation
- public getKind
- public getLocation
- public getSpelling
- public getSpellingListIndex
- public isImplicit
- public isInherited
- public isLateParsed
- public isPackExpansion
- public printPretty
- public setImplicit
- public setPackExpansion
Inherited from AttributeCommonInfo:
- public getAttrName
- public getAttributeSpellingListIndex
- public getLoc
- public getNormalizedFullName
- public getParsedKind
- public getParsedKind
- public getRange
- public getScopeLoc
- public getScopeName
- public getSyntax
- public hasScope
- public isAlignasAttribute
- protected isAttributeSpellingListCalculated
- public isC2xAttribute
- public isCXX11Attribute
- public isClangScope
- public isContextSensitiveKeywordAttribute
- public isDeclspecAttribute
- public isGNUAttribute
- public isGNUScope
- public isKeywordAttribute
- public isMicrosoftAttribute
- public isStandardAttributeSyntax
- public setAttributeSpellingListIndex
- public setRange
Methods
¶static clang::PreferredNameAttr* Create(
clang::ASTContext& Ctx,
clang::TypeSourceInfo* TypedefType,
const clang::AttributeCommonInfo& CommonInfo)
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)
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{}})
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)
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)
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)
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
clang::PreferredNameAttr* clone(
clang::ASTContext& C) const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:9415
Parameters
¶const char* getSpelling() const
const char* getSpelling() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:9418
¶clang::QualType getTypedefType() const
clang::QualType getTypedefType() const
Declared at: build/tools/clang/include/clang/AST/Attrs.inc:9419
¶clang::TypeSourceInfo* getTypedefTypeLoc() const
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
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