clang
7.0.0
|
Attr - This represents one attribute. More...
#include "clang/AST/Attr.h"
Public Member Functions | |
void * | operator new (size_t Bytes, ASTContext &C, size_t Alignment=8) noexcept |
void | operator delete (void *Ptr, ASTContext &C, size_t Alignment) noexcept |
attr::Kind | getKind () const |
unsigned | getSpellingListIndex () const |
const char * | getSpelling () const |
SourceLocation | getLocation () const |
SourceRange | getRange () const |
void | setRange (SourceRange R) |
bool | isInherited () const |
bool | isImplicit () const |
Returns true if the attribute has been implicitly created instead of explicitly written by the user. More... | |
void | setImplicit (bool I) |
void | setPackExpansion (bool PE) |
bool | isPackExpansion () const |
Attr * | clone (ASTContext &C) const |
bool | isLateParsed () const |
void | printPretty (raw_ostream &OS, const PrintingPolicy &Policy) const |
Protected Member Functions | |
void * | operator new (size_t bytes) noexcept |
void | operator delete (void *data) noexcept |
Attr (attr::Kind AK, SourceRange R, unsigned SpellingListIndex, bool IsLateParsed) | |
Protected Attributes | |
unsigned | SpellingListIndex: 4 |
An index into the spelling list of an attribute defined in Attr.td file. More... | |
unsigned | Inherited: 1 |
unsigned | IsPackExpansion: 1 |
unsigned | Implicit: 1 |
unsigned | IsLateParsed: 1 |
unsigned | InheritEvenIfAlreadyPresent: 1 |
|
inlineprotected |
Attr* clang::Attr::clone | ( | ASTContext & | C | ) | const |
|
inline |
Definition at line 86 of file Attr.h.
Referenced by clang::ast_matchers::AST_MATCHER_P(), clang::StmtAttr::classof(), clang::InheritableAttr::classof(), clang::InheritableParamAttr::classof(), clang::ParameterABIAttr::classof(), DeclHasAttr(), clang::ParameterABIAttr::getABI(), ReferenceDllExportedMembers(), and clang::TreeTransform< Derived >::TransformAttr().
|
inline |
Definition at line 93 of file Attr.h.
References clang::SourceRange::getBegin().
Referenced by clang::Sema::ActOnStartOfFunctionDef(), checkForMultipleExportedDefaultConstructors(), clang::Sema::propagateDLLAttrToBaseClassTemplate(), and ReferenceDllExportedMembers().
|
inline |
Definition at line 94 of file Attr.h.
Referenced by clang::ASTImporter::Import().
const char* clang::Attr::getSpelling | ( | ) | const |
|
inline |
Definition at line 90 of file Attr.h.
References getSpelling(), and SpellingListIndex.
|
inline |
|
inline |
Definition at line 97 of file Attr.h.
References Inherited.
Referenced by ReferenceDllExportedMembers().
|
inline |
Definition at line 110 of file Attr.h.
References IsLateParsed, and printPretty().
|
inline |
Definition at line 105 of file Attr.h.
References clone(), and IsPackExpansion.
|
inlineprotectednoexcept |
|
inlinenoexcept |
|
inlineprotectednoexcept |
|
inlinenoexcept |
void clang::Attr::printPretty | ( | raw_ostream & | OS, |
const PrintingPolicy & | Policy | ||
) | const |
Referenced by isLateParsed().
|
inline |
Definition at line 104 of file Attr.h.
References IsPackExpansion.
|
inline |
Definition at line 95 of file Attr.h.
Referenced by clang::ASTImporter::Import().
|
protected |
Definition at line 54 of file Attr.h.
Referenced by isImplicit().
|
protected |
Definition at line 52 of file Attr.h.
Referenced by isInherited().
|
protected |
Definition at line 58 of file Attr.h.
Referenced by clang::InheritableAttr::InheritableAttr(), and clang::InheritableAttr::shouldInheritEvenIfAlreadyPresent().
|
protected |
Definition at line 57 of file Attr.h.
Referenced by isLateParsed().
|
protected |
Definition at line 53 of file Attr.h.
Referenced by isPackExpansion(), and setPackExpansion().
|
protected |
An index into the spelling list of an attribute defined in Attr.td file.
Definition at line 51 of file Attr.h.
Referenced by getSpellingListIndex().