clang API Documentation
#include <AttributeList.h>
Public Member Functions | |
| AttributePool (AttributeFactory &factory) | |
| Create a new pool for a factory. | |
| AttributePool (AttributePool &pool) | |
| Move the given pool's allocations to this pool. | |
| AttributeFactory & | getFactory () const |
| void | clear () |
| void | takeAllFrom (AttributePool &pool) |
| Take the given pool's allocations and add them to this pool. | |
| ~AttributePool () | |
| AttributeList * | create (IdentifierInfo *attrName, SourceRange attrRange, IdentifierInfo *scopeName, SourceLocation scopeLoc, IdentifierInfo *parmName, SourceLocation parmLoc, Expr **args, unsigned numArgs, bool declspec=false, bool cxx0x=false) |
| AttributeList * | create (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 * | createIntegerAttribute (ASTContext &C, IdentifierInfo *Name, SourceLocation TokLoc, int Arg) |
Definition at line 324 of file AttributeList.h.
| clang::AttributePool::AttributePool | ( | AttributeFactory & | factory | ) | [inline] |
Create a new pool for a factory.
Definition at line 343 of file AttributeList.h.
| clang::AttributePool::AttributePool | ( | AttributePool & | pool | ) | [inline] |
Move the given pool's allocations to this pool.
Definition at line 346 of file AttributeList.h.
| clang::AttributePool::~AttributePool | ( | ) | [inline] |
Definition at line 367 of file AttributeList.h.
| void clang::AttributePool::clear | ( | ) | [inline] |
Definition at line 352 of file AttributeList.h.
| AttributeList* clang::AttributePool::create | ( | 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 371 of file AttributeList.h.
Referenced by createIntegerAttribute(), and transferARCOwnershipToDeclaratorChunk().
| AttributeList* clang::AttributePool::create | ( | 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 385 of file AttributeList.h.
References clang::AttributeFactory::AvailabilityAllocSize.
| AttributeList * AttributePool::createIntegerAttribute | ( | ASTContext & | C, |
| IdentifierInfo * | Name, | ||
| SourceLocation | TokLoc, | ||
| int | Arg | ||
| ) |
Definition at line 94 of file AttributeList.cpp.
References create(), clang::IntegerLiteral::Create(), and clang::ASTContext::IntTy.
| AttributeFactory& clang::AttributePool::getFactory | ( | ) | const [inline] |
Definition at line 350 of file AttributeList.h.
| void clang::AttributePool::takeAllFrom | ( | AttributePool & | pool | ) | [inline] |
Take the given pool's allocations and add them to this pool.
Definition at line 360 of file AttributeList.h.
Referenced by clang::Declarator::AddTypeInfo(), and takeDeclAttributes().