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 | 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) |
Wrapper of type source information for a type with non-trivial direct qualifiers.
Currently, we intentionally do not provide source location for type qualifiers.
| 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] |
| 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.
| 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] |