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


Member Function Documentation

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

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

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

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

Get the local source range.

Reimplemented from clang::TypeLoc.

Definition at line 769 of file TypeLoc.h.

References clang::SourceRange::setEnd().

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

Definition at line 710 of file TypeLoc.h.

Referenced by fillAttributedTypeLoc().

Definition at line 785 of file TypeLoc.h.


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