clang API Documentation

Public Member Functions | Friends
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 getLocalDataAlignment () const
 Returns the alignment of the type source info data block that is specific to this type.

Friends

class TypeLoc

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


Member Function Documentation

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

Definition at line 266 of file TypeLoc.h.

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

Definition at line 258 of file TypeLoc.h.

Get the local source range.

Reimplemented from clang::TypeLoc.

Definition at line 234 of file TypeLoc.h.

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

References getUnqualifiedLoc().

Skips past any qualifiers, if this is qualified.

Reimplemented from clang::TypeLoc.

Definition at line 238 of file TypeLoc.h.

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

Referenced by getNextTypeLoc(), and clang::RecursiveASTVisitor< FindSuperCallVisitor >::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 248 of file TypeLoc.h.


Friends And Related Function Documentation

friend class TypeLoc [friend]

Definition at line 272 of file TypeLoc.h.


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