clang API Documentation
Type source information for an attributed type. More...
#include <TypeLoc.h>
Public Member Functions | |
AttributedType::Kind | getAttrKind () const |
bool | hasAttrExprOperand () const |
bool | hasAttrEnumOperand () const |
bool | hasAttrOperand () const |
TypeLoc | getModifiedLoc () const |
SourceLocation | getAttrNameLoc () const |
void | setAttrNameLoc (SourceLocation loc) |
Expr * | getAttrExprOperand () const |
void | setAttrExprOperand (Expr *e) |
SourceLocation | getAttrEnumOperandLoc () const |
void | setAttrEnumOperandLoc (SourceLocation loc) |
SourceRange | getAttrOperandParensRange () const |
void | setAttrOperandParensRange (SourceRange range) |
SourceRange | getLocalSourceRange () const |
Get the local source range. | |
void | initializeLocal (ASTContext &Context, SourceLocation loc) |
QualType | getInnerType () const |
SourceLocation clang::AttributedTypeLoc::getAttrEnumOperandLoc | ( | ) | const [inline] |
The location of the attribute's enumerated operand, if it has one. void * __attribute__((objc_gc(weak))) ^~~~
Definition at line 747 of file TypeLoc.h.
References clang::SourceLocation::getFromRawEncoding(), and clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Expr* clang::AttributedTypeLoc::getAttrExprOperand | ( | ) | const [inline] |
The attribute's expression operand, if it has one. void *cur_thread __attribute__((address_space(21))) ^~
Definition at line 735 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
AttributedType::Kind clang::AttributedTypeLoc::getAttrKind | ( | ) | const [inline] |
Definition at line 696 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getTypePtr().
Referenced by fillAttributedTypeLoc().
SourceLocation clang::AttributedTypeLoc::getAttrNameLoc | ( | ) | const [inline] |
The location of the attribute name, i.e. __attribute__((regparm(1000))) ^~~~~~~
Definition at line 725 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
SourceRange clang::AttributedTypeLoc::getAttrOperandParensRange | ( | ) | const [inline] |
The location of the parentheses around the operand, if there is an operand. void * __attribute__((objc_gc(weak))) ^ ^
Definition at line 760 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
QualType clang::AttributedTypeLoc::getInnerType | ( | ) | const [inline] |
Reimplemented from clang::ConcreteTypeLoc< UnqualTypeLoc, AttributedTypeLoc, AttributedType, AttributedLocInfo >.
Definition at line 796 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getTypePtr().
SourceRange clang::AttributedTypeLoc::getLocalSourceRange | ( | ) | const [inline] |
Get the local source range.
Reimplemented from clang::TypeLoc.
Definition at line 769 of file TypeLoc.h.
References clang::SourceRange::setEnd().
TypeLoc clang::AttributedTypeLoc::getModifiedLoc | ( | ) | const [inline] |
The modified type, which is generally canonically different from the attribute type. int main(int, char**) __attribute__((noreturn)) ~~~ ~~~~~~~~~~~~~
Definition at line 718 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getInnerTypeLoc().
bool clang::AttributedTypeLoc::hasAttrEnumOperand | ( | ) | const [inline] |
Definition at line 705 of file TypeLoc.h.
References clang::AttributedType::FirstEnumOperandKind, and clang::AttributedType::LastEnumOperandKind.
Referenced by fillAttributedTypeLoc().
bool clang::AttributedTypeLoc::hasAttrExprOperand | ( | ) | const [inline] |
Definition at line 700 of file TypeLoc.h.
References clang::AttributedType::FirstExprOperandKind, and clang::AttributedType::LastExprOperandKind.
Referenced by fillAttributedTypeLoc().
bool clang::AttributedTypeLoc::hasAttrOperand | ( | ) | const [inline] |
Definition at line 710 of file TypeLoc.h.
Referenced by fillAttributedTypeLoc().
void clang::AttributedTypeLoc::initializeLocal | ( | ASTContext & | Context, |
SourceLocation | loc | ||
) | [inline] |
void clang::AttributedTypeLoc::setAttrEnumOperandLoc | ( | SourceLocation | loc | ) | [inline] |
Definition at line 751 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData(), and clang::SourceLocation::getRawEncoding().
Referenced by fillAttributedTypeLoc().
void clang::AttributedTypeLoc::setAttrExprOperand | ( | Expr * | e | ) | [inline] |
Definition at line 739 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by fillAttributedTypeLoc().
void clang::AttributedTypeLoc::setAttrNameLoc | ( | SourceLocation | loc | ) | [inline] |
Definition at line 728 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by fillAttributedTypeLoc().
void clang::AttributedTypeLoc::setAttrOperandParensRange | ( | SourceRange | range | ) | [inline] |
Definition at line 764 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
Referenced by fillAttributedTypeLoc().