class Attr

Declaration

class Attr : public AttributeCommonInfo { /* full declaration omitted */ };

Description

Attr - This represents one attribute.

Declared at: clang/include/clang/AST/Attr.h:41

Inherits from: AttributeCommonInfo

Member Variables

private unsigned int AttrKind
protected unsigned int Inherited
An index into the spelling list of an attribute defined in Attr.td file.
protected unsigned int IsPackExpansion
protected unsigned int Implicit
protected unsigned int IsLateParsed
protected unsigned int InheritEvenIfAlreadyPresent

Inherited from AttributeCommonInfo:

protected static SpellingNotCalculated = 15

Method Overview

Inherited from AttributeCommonInfo:

Methods

Attr(clang::ASTContext& Context,
     const clang::AttributeCommonInfo& CommonInfo,
     attr::Kind AK,
     bool IsLateParsed)

Declared at: clang/include/clang/AST/Attr.h:74

Parameters

clang::ASTContext& Context
const clang::AttributeCommonInfo& CommonInfo
attr::Kind AK
bool IsLateParsed

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

Declared at: clang/include/clang/AST/Attr.h:101

Parameters

clang::ASTContext& C

static llvm::StringRef getDocumentation(
    attr::Kind)

Declared at: clang/include/clang/AST/Attr.h:108

Parameters

attr::Kind

attr::Kind getKind() const

Declared at: clang/include/clang/AST/Attr.h:81

clang::SourceLocation getLocation() const

Declared at: clang/include/clang/AST/Attr.h:88

const char* getSpelling() const

Declared at: clang/include/clang/AST/Attr.h:86

unsigned int getSpellingListIndex() const

Declared at: clang/include/clang/AST/Attr.h:83

bool isImplicit() const

Description

Returns true if the attribute has been implicitly created instead of explicitly written by the user.

Declared at: clang/include/clang/AST/Attr.h:94

bool isInherited() const

Declared at: clang/include/clang/AST/Attr.h:90

bool isLateParsed() const

Declared at: clang/include/clang/AST/Attr.h:103

bool isPackExpansion() const

Declared at: clang/include/clang/AST/Attr.h:98

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

Declared at: clang/include/clang/AST/Attr.h:106

Parameters

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

void setImplicit(bool I)

Declared at: clang/include/clang/AST/Attr.h:95

Parameters

bool I

void setPackExpansion(bool PE)

Declared at: clang/include/clang/AST/Attr.h:97

Parameters

bool PE