clang API Documentation
#include <AttributeList.h>

Public Member Functions | |
| ParsedAttributes (AttributeFactory &factory) | |
| ParsedAttributes (ParsedAttributes &attrs) | |
| AttributePool & | getPool () const |
| bool | empty () const |
| void | add (AttributeList *newAttr) |
| void | addAll (AttributeList *newList) |
| void | set (AttributeList *newList) |
| void | takeAllFrom (ParsedAttributes &attrs) |
| void | clear () |
| AttributeList * | getList () const |
| AttributeList *& | getListRef () |
| AttributeList * | addNew (IdentifierInfo *attrName, SourceRange attrRange, IdentifierInfo *scopeName, SourceLocation scopeLoc, IdentifierInfo *parmName, SourceLocation parmLoc, Expr **args, unsigned numArgs, bool declspec=false, bool cxx0x=false) |
| AttributeList * | addNew (IdentifierInfo *attrName, SourceRange attrRange, IdentifierInfo *scopeName, SourceLocation scopeLoc, IdentifierInfo *parmName, SourceLocation parmLoc, const AvailabilityChange &introduced, const AvailabilityChange &deprecated, const AvailabilityChange &obsoleted, SourceLocation unavailable, const Expr *MessageExpr, bool declspec=false, bool cxx0x=false) |
| AttributeList * | addNewInteger (ASTContext &C, IdentifierInfo *name, SourceLocation loc, int arg) |
ParsedAttributes - A collection of parsed attributes. Currently we don't differentiate between the various attribute syntaxes, which is basically silly.
Right now this is a very lightweight container, but the expectation is that this will become significantly more serious.
Definition at line 447 of file AttributeList.h.
| clang::ParsedAttributes::ParsedAttributes | ( | AttributeFactory & | factory | ) | [inline] |
Definition at line 449 of file AttributeList.h.
| clang::ParsedAttributes::ParsedAttributes | ( | ParsedAttributes & | attrs | ) | [inline] |
Definition at line 453 of file AttributeList.h.
| void clang::ParsedAttributes::add | ( | AttributeList * | newAttr | ) | [inline] |
Definition at line 462 of file AttributeList.h.
References clang::AttributeList::getNext(), and clang::AttributeList::setNext().
Referenced by takeDeclAttributes().
| void clang::ParsedAttributes::addAll | ( | AttributeList * | newList | ) | [inline] |
Definition at line 469 of file AttributeList.h.
References clang::AttributeList::getNext(), and clang::AttributeList::setNext().
Referenced by clang::DeclSpec::addAttributes().
| AttributeList* clang::ParsedAttributes::addNew | ( | IdentifierInfo * | attrName, |
| SourceRange | attrRange, | ||
| IdentifierInfo * | scopeName, | ||
| SourceLocation | scopeLoc, | ||
| IdentifierInfo * | parmName, | ||
| SourceLocation | parmLoc, | ||
| Expr ** | args, | ||
| unsigned | numArgs, | ||
| bool | declspec = false, |
||
| bool | cxx0x = false |
||
| ) | [inline] |
Definition at line 498 of file AttributeList.h.
| AttributeList* clang::ParsedAttributes::addNew | ( | IdentifierInfo * | attrName, |
| SourceRange | attrRange, | ||
| IdentifierInfo * | scopeName, | ||
| SourceLocation | scopeLoc, | ||
| IdentifierInfo * | parmName, | ||
| SourceLocation | parmLoc, | ||
| const AvailabilityChange & | introduced, | ||
| const AvailabilityChange & | deprecated, | ||
| const AvailabilityChange & | obsoleted, | ||
| SourceLocation | unavailable, | ||
| const Expr * | MessageExpr, | ||
| bool | declspec = false, |
||
| bool | cxx0x = false |
||
| ) | [inline] |
Definition at line 510 of file AttributeList.h.
| AttributeList* clang::ParsedAttributes::addNewInteger | ( | ASTContext & | C, |
| IdentifierInfo * | name, | ||
| SourceLocation | loc, | ||
| int | arg | ||
| ) | [inline] |
Definition at line 528 of file AttributeList.h.
| void clang::ParsedAttributes::clear | ( | ) | [inline] |
Definition at line 490 of file AttributeList.h.
Referenced by clang::Declarator::clear().
| bool clang::ParsedAttributes::empty | ( | ) | const [inline] |
Definition at line 460 of file AttributeList.h.
Referenced by clang::DeclSpec::hasAttributes(), and clang::Sema::ParsedFreeStandingDeclSpec().
| AttributeList* clang::ParsedAttributes::getList | ( | ) | const [inline] |
Definition at line 491 of file AttributeList.h.
Referenced by clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFinishDelayedAttribute(), clang::Declarator::AddTypeInfo(), clang::Sema::checkUnusedDeclAttributes(), clang::Declarator::getAttributes(), clang::Sema::ParsedFreeStandingDeclSpec(), clang::Sema::ProcessDeclAttributes(), and takeDeclAttributes().
| AttributeList*& clang::ParsedAttributes::getListRef | ( | ) | [inline] |
Returns a reference to the attribute list. Try not to introduce dependencies on this method, it may not be long-lived.
Definition at line 495 of file AttributeList.h.
Referenced by distributeObjCPointerTypeAttrFromDeclarator(), and clang::Declarator::getAttrListRef().
| AttributePool& clang::ParsedAttributes::getPool | ( | ) | const [inline] |
Definition at line 458 of file AttributeList.h.
Referenced by clang::Declarator::AddTypeInfo(), clang::DeclSpec::getAttributePool(), clang::Declarator::getAttributePool(), and takeDeclAttributes().
| void clang::ParsedAttributes::set | ( | AttributeList * | newList | ) | [inline] |
Definition at line 480 of file AttributeList.h.
Referenced by clang::DeclSpec::setAttributes().
| void clang::ParsedAttributes::takeAllFrom | ( | ParsedAttributes & | attrs | ) | [inline] |
Definition at line 484 of file AttributeList.h.
Referenced by clang::Declarator::takeAttributes(), and clang::DeclSpec::takeAttributesFrom().