|
clang
5.0.0
|
ParsedAttributes - A collection of parsed attributes. More...
#include "clang/Sema/AttributeList.h"
Public Member Functions | |
| ParsedAttributes (AttributeFactory &factory) | |
| ParsedAttributes (const ParsedAttributes &)=delete | |
| AttributePool & | getPool () const |
| bool | empty () const |
| void | add (AttributeList *newAttr) |
| void | addAll (AttributeList *newList) |
| void | addAllAtEnd (AttributeList *newList) |
| void | set (AttributeList *newList) |
| void | takeAllFrom (ParsedAttributes &attrs) |
| void | clear () |
| AttributeList * | getList () const |
| void | clearListOnly () |
| AttributeList *& | getListRef () |
| Returns a reference to the attribute list. More... | |
| AttributeList * | addNew (IdentifierInfo *attrName, SourceRange attrRange, IdentifierInfo *scopeName, SourceLocation scopeLoc, ArgsUnion *args, unsigned numArgs, AttributeList::Syntax syntax, SourceLocation ellipsisLoc=SourceLocation()) |
| Add attribute with expression arguments. More... | |
| AttributeList * | addNew (IdentifierInfo *attrName, SourceRange attrRange, IdentifierInfo *scopeName, SourceLocation scopeLoc, IdentifierLoc *Param, const AvailabilityChange &introduced, const AvailabilityChange &deprecated, const AvailabilityChange &obsoleted, SourceLocation unavailable, const Expr *MessageExpr, AttributeList::Syntax syntax, SourceLocation strict, const Expr *ReplacementExpr) |
| Add availability attribute. More... | |
| AttributeList * | addNew (IdentifierInfo *attrName, SourceRange attrRange, IdentifierInfo *scopeName, SourceLocation scopeLoc, IdentifierLoc *Param1, IdentifierLoc *Param2, IdentifierLoc *Param3, AttributeList::Syntax syntax) |
| Add objc_bridge_related attribute. More... | |
| AttributeList * | addNewTypeTagForDatatype (IdentifierInfo *attrName, SourceRange attrRange, IdentifierInfo *scopeName, SourceLocation scopeLoc, IdentifierLoc *argumentKind, ParsedType matchingCType, bool layoutCompatible, bool mustBeNull, AttributeList::Syntax syntax) |
| Add type_tag_for_datatype attribute. More... | |
| AttributeList * | addNewTypeAttr (IdentifierInfo *attrName, SourceRange attrRange, IdentifierInfo *scopeName, SourceLocation scopeLoc, ParsedType typeArg, AttributeList::Syntax syntaxUsed) |
| Add an attribute with a single type argument. More... | |
| AttributeList * | addNewPropertyAttr (IdentifierInfo *attrName, SourceRange attrRange, IdentifierInfo *scopeName, SourceLocation scopeLoc, IdentifierInfo *getterId, IdentifierInfo *setterId, AttributeList::Syntax syntaxUsed) |
| Add microsoft __delspec(property) attribute. More... | |
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 727 of file AttributeList.h.
|
inline |
Definition at line 729 of file AttributeList.h.
|
delete |
|
inline |
Definition at line 739 of file AttributeList.h.
References clang::AttributeList::getNext(), and clang::AttributeList::setNext().
Referenced by takeDeclAttributes().
|
inline |
Definition at line 746 of file AttributeList.h.
References clang::AttributeList::getNext(), and clang::AttributeList::setNext().
Referenced by clang::DeclSpec::addAttributes().
|
inline |
Definition at line 757 of file AttributeList.h.
References clang::AttributeList::getNext(), and clang::AttributeList::setNext().
|
inline |
Add attribute with expression arguments.
Definition at line 790 of file AttributeList.h.
|
inline |
Add availability attribute.
Definition at line 803 of file AttributeList.h.
|
inline |
Add objc_bridge_related attribute.
Definition at line 822 of file AttributeList.h.
|
inline |
Add microsoft __delspec(property) attribute.
Definition at line 865 of file AttributeList.h.
|
inline |
Add an attribute with a single type argument.
Definition at line 853 of file AttributeList.h.
|
inline |
Add type_tag_for_datatype attribute.
Definition at line 836 of file AttributeList.h.
|
inline |
Definition at line 780 of file AttributeList.h.
Referenced by clang::Declarator::clear().
|
inline |
Definition at line 783 of file AttributeList.h.
|
inline |
Definition at line 737 of file AttributeList.h.
Referenced by clang::Sema::ActOnBaseSpecifier(), clang::DeclSpec::hasAttributes(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
inline |
Definition at line 781 of file AttributeList.h.
Referenced by clang::Sema::ActOnBaseSpecifier(), clang::Sema::ActOnCXXMemberDeclarator(), clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFinishDelayedAttribute(), clang::Declarator::AddTypeInfo(), clang::Sema::checkUnusedDeclAttributes(), clang::Declarator::getAttributes(), getCCForDeclaratorChunk(), clang::Declarator::getCXX11AttributeRanges(), GetDeclSpecTypeForDeclarator(), GetFullTypeForDeclarator(), hasParsedAttr(), clang::Sema::ParsedFreeStandingDeclSpec(), clang::Parser::ParseTypeName(), clang::Sema::ProcessDeclAttributes(), and takeDeclAttributes().
|
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 787 of file AttributeList.h.
Referenced by checkOmittedBlockReturnType(), distributeObjCPointerTypeAttrFromDeclarator(), clang::Declarator::getAttrListRef(), and GetFullTypeForDeclarator().
|
inline |
Definition at line 735 of file AttributeList.h.
Referenced by clang::Sema::ActOnCXXForRangeIdentifier(), clang::Declarator::AddTypeInfo(), clang::DeclSpec::getAttributePool(), clang::Declarator::getAttributePool(), and takeDeclAttributes().
|
inline |
Definition at line 770 of file AttributeList.h.
|
inline |
Definition at line 774 of file AttributeList.h.
Referenced by clang::Declarator::takeAttributes(), and clang::DeclSpec::takeAttributesFrom().
1.8.6