clang API Documentation

Public Member Functions
clang::AttributedTypeLoc Class Reference

Type source information for an attributed type. More...

#include <TypeLoc.h>

Inheritance diagram for clang::AttributedTypeLoc:
Inheritance graph
[legend]
Collaboration diagram for clang::AttributedTypeLoc:
Collaboration graph
[legend]

List of all members.

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)
ExprgetAttrExprOperand () 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

Detailed Description

Type source information for an attributed type.

Definition at line 634 of file TypeLoc.h.


Member Function Documentation

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 690 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 678 of file TypeLoc.h.

References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().

AttributedType::Kind clang::AttributedTypeLoc::getAttrKind ( ) const [inline]
SourceLocation clang::AttributedTypeLoc::getAttrNameLoc ( ) const [inline]

The location of the attribute name, i.e. __attribute__((regparm(1000))) ^~~~~~~

Definition at line 668 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 703 of file TypeLoc.h.

References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().

QualType clang::AttributedTypeLoc::getInnerType ( ) const [inline]
SourceRange clang::AttributedTypeLoc::getLocalSourceRange ( ) const [inline]

Get the local source range.

Reimplemented from clang::TypeLoc.

Definition at line 712 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 661 of file TypeLoc.h.

References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getInnerTypeLoc().

bool clang::AttributedTypeLoc::hasAttrEnumOperand ( ) const [inline]
bool clang::AttributedTypeLoc::hasAttrExprOperand ( ) const [inline]
bool clang::AttributedTypeLoc::hasAttrOperand ( ) const [inline]

Definition at line 653 of file TypeLoc.h.

Referenced by fillAttributedTypeLoc().

void clang::AttributedTypeLoc::initializeLocal ( ASTContext Context,
SourceLocation  loc 
) [inline]

Definition at line 728 of file TypeLoc.h.

void clang::AttributedTypeLoc::setAttrEnumOperandLoc ( SourceLocation  loc) [inline]
void clang::AttributedTypeLoc::setAttrExprOperand ( Expr e) [inline]
void clang::AttributedTypeLoc::setAttrNameLoc ( SourceLocation  loc) [inline]
void clang::AttributedTypeLoc::setAttrOperandParensRange ( SourceRange  range) [inline]

The documentation for this class was generated from the following file: