clang API Documentation
Wrapper of type source information for a type with non-trivial direct qualifiers. More...
#include <TypeLoc.h>


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 |
Wrapper of type source information for a type with non-trivial direct qualifiers.
Currently, we intentionally do not provide source location for type qualifiers.
| unsigned clang::QualifiedTypeLoc::getLocalDataAlignment | ( | ) | const [inline] |
| unsigned clang::QualifiedTypeLoc::getLocalDataSize | ( | ) | const [inline] |
| SourceRange clang::QualifiedTypeLoc::getLocalSourceRange | ( | ) | const [inline] |
Get the local source range.
Reimplemented from clang::TypeLoc.
| 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 252 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 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] |