clang API Documentation

Public Member Functions | Static Public Member Functions
clang::QualifiedTypeLoc Class Reference

Wrapper of type source information for a type with non-trivial direct qualifiers. More...

#include <TypeLoc.h>

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

List of all members.

Public Member Functions

SourceRange getLocalSourceRange () const
 Get the local source range.
UnqualTypeLoc getUnqualifiedLoc () const
 Skips past any qualifiers, if this is qualified.
void initializeLocal (ASTContext &Context, SourceLocation Loc)
TypeLoc getNextTypeLoc () const
 Get the next TypeLoc pointed by this TypeLoc, e.g for "int*" the TypeLoc is a PointerLoc and next TypeLoc is for "int".
unsigned getLocalDataSize () const
 Returns the size of the type source info data block that is specific to this type.
unsigned getFullDataSize () const
 Returns the size of the type source info data block.

Static Public Member Functions

static bool classof (const TypeLoc *TL)
static bool classof (const QualifiedTypeLoc *TL)

Detailed Description

Wrapper of type source information for a type with non-trivial direct qualifiers.

Currently, we intentionally do not provide source location for type qualifiers.

Definition at line 203 of file TypeLoc.h.


Member Function Documentation

static bool clang::QualifiedTypeLoc::classof ( const TypeLoc TL) [inline, static]

Reimplemented from clang::TypeLoc.

Definition at line 237 of file TypeLoc.h.

References clang::TypeLoc::getType(), and clang::QualType::hasLocalQualifiers().

static bool clang::QualifiedTypeLoc::classof ( const QualifiedTypeLoc TL) [inline, static]

Definition at line 240 of file TypeLoc.h.

unsigned clang::QualifiedTypeLoc::getFullDataSize ( ) const [inline]

Returns the size of the type source info data block.

Reimplemented from clang::TypeLoc.

Definition at line 232 of file TypeLoc.h.

References clang::TypeLoc::getFullDataSizeForType(), getLocalDataSize(), and clang::TypeLoc::getType().

unsigned clang::QualifiedTypeLoc::getLocalDataSize ( ) const [inline]

Returns the size of the type source info data block that is specific to this type.

Definition at line 225 of file TypeLoc.h.

Referenced by getFullDataSize().

SourceRange clang::QualifiedTypeLoc::getLocalSourceRange ( ) const [inline]

Get the local source range.

Reimplemented from clang::TypeLoc.

Definition at line 205 of file TypeLoc.h.

TypeLoc clang::QualifiedTypeLoc::getNextTypeLoc ( ) const [inline]

Get the next TypeLoc pointed by this TypeLoc, e.g for "int*" the TypeLoc is a PointerLoc and next TypeLoc is for "int".

Reimplemented from clang::TypeLoc.

Definition at line 219 of file TypeLoc.h.

References getUnqualifiedLoc().

UnqualTypeLoc clang::QualifiedTypeLoc::getUnqualifiedLoc ( ) const [inline]

Skips past any qualifiers, if this is qualified.

Reimplemented from clang::TypeLoc.

Definition at line 209 of file TypeLoc.h.

References clang::TypeLoc::Data, and clang::TypeLoc::getTypePtr().

Referenced by getNextTypeLoc(), and clang::RecursiveASTVisitor< CallGraph >::WalkUpFromQualifiedTypeLoc().

void clang::QualifiedTypeLoc::initializeLocal ( ASTContext Context,
SourceLocation  Loc 
) [inline]

Initializes the local data of this type source info block to provide no information.

Definition at line 215 of file TypeLoc.h.


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