clang API Documentation
Wrapper for source info for builtin types. More...
#include <TypeLoc.h>
Public Member Functions | |
SourceLocation | getBuiltinLoc () const |
void | setBuiltinLoc (SourceLocation Loc) |
SourceLocation | getNameLoc () const |
WrittenBuiltinSpecs & | getWrittenBuiltinSpecs () |
const WrittenBuiltinSpecs & | getWrittenBuiltinSpecs () const |
bool | needsExtraLocalData () const |
unsigned | getExtraLocalDataSize () const |
unsigned | getExtraLocalDataAlignment () const |
SourceRange | getLocalSourceRange () const |
Get the local source range. | |
TypeSpecifierSign | getWrittenSignSpec () const |
bool | hasWrittenSignSpec () const |
void | setWrittenSignSpec (TypeSpecifierSign written) |
TypeSpecifierWidth | getWrittenWidthSpec () const |
bool | hasWrittenWidthSpec () const |
void | setWrittenWidthSpec (TypeSpecifierWidth written) |
TypeSpecifierType | getWrittenTypeSpec () const |
bool | hasWrittenTypeSpec () const |
void | setWrittenTypeSpec (TypeSpecifierType written) |
bool | hasModeAttr () const |
void | setModeAttr (bool written) |
void | initializeLocal (ASTContext &Context, SourceLocation Loc) |
SourceLocation clang::BuiltinTypeLoc::getBuiltinLoc | ( | ) | const [inline] |
Definition at line 489 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
unsigned clang::BuiltinTypeLoc::getExtraLocalDataAlignment | ( | ) | const [inline] |
unsigned clang::BuiltinTypeLoc::getExtraLocalDataSize | ( | ) | const [inline] |
SourceRange clang::BuiltinTypeLoc::getLocalSourceRange | ( | ) | const [inline] |
Get the local source range.
Reimplemented from clang::TypeLoc.
SourceLocation clang::BuiltinTypeLoc::getNameLoc | ( | ) | const [inline] |
Definition at line 498 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getExtraLocalData().
Referenced by getWrittenTypeSpec().
const WrittenBuiltinSpecs& clang::BuiltinTypeLoc::getWrittenBuiltinSpecs | ( | ) | const [inline] |
Definition at line 501 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getExtraLocalData().
TypeSpecifierSign clang::BuiltinTypeLoc::getWrittenSignSpec | ( | ) | const [inline] |
Definition at line 525 of file TypeLoc.h.
References clang::TSS_unspecified.
Definition at line 247 of file TypeLoc.cpp.
References clang::BuiltinType::getKind(), clang::ConcreteTypeLoc< UnqualTypeLoc, BuiltinTypeLoc, BuiltinType, BuiltinLocInfo >::getTypePtr(), getWrittenBuiltinSpecs(), needsExtraLocalData(), clang::TST_bool, clang::TST_char, clang::TST_char16, clang::TST_char32, clang::TST_unspecified, clang::TST_void, clang::TST_wchar, and clang::WrittenBuiltinSpecs::Type.
TypeSpecifierWidth clang::BuiltinTypeLoc::getWrittenWidthSpec | ( | ) | const [inline] |
Definition at line 539 of file TypeLoc.h.
References clang::TSW_unspecified.
bool clang::BuiltinTypeLoc::hasModeAttr | ( | ) | const [inline] |
bool clang::BuiltinTypeLoc::hasWrittenSignSpec | ( | ) | const [inline] |
Definition at line 531 of file TypeLoc.h.
References clang::TSS_unspecified.
bool clang::BuiltinTypeLoc::hasWrittenTypeSpec | ( | ) | const [inline] |
Definition at line 554 of file TypeLoc.h.
References clang::TST_unspecified.
bool clang::BuiltinTypeLoc::hasWrittenWidthSpec | ( | ) | const [inline] |
Definition at line 545 of file TypeLoc.h.
References clang::TSW_unspecified.
void clang::BuiltinTypeLoc::initializeLocal | ( | ASTContext & | Context, |
SourceLocation | Loc | ||
) | [inline] |
Definition at line 573 of file TypeLoc.h.
References clang::WrittenBuiltinSpecs::ModeAttr, clang::WrittenBuiltinSpecs::Sign, clang::TSS_unspecified, clang::TST_unspecified, clang::TSW_unspecified, clang::WrittenBuiltinSpecs::Type, and clang::WrittenBuiltinSpecs::Width.
bool clang::BuiltinTypeLoc::needsExtraLocalData | ( | ) | const [inline] |
Definition at line 505 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getTypePtr().
Referenced by getWrittenTypeSpec().
void clang::BuiltinTypeLoc::setBuiltinLoc | ( | SourceLocation | Loc | ) | [inline] |
Definition at line 492 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getLocalData().
void clang::BuiltinTypeLoc::setModeAttr | ( | bool | written | ) | [inline] |
void clang::BuiltinTypeLoc::setWrittenSignSpec | ( | TypeSpecifierSign | written | ) | [inline] |
void clang::BuiltinTypeLoc::setWrittenTypeSpec | ( | TypeSpecifierType | written | ) | [inline] |
void clang::BuiltinTypeLoc::setWrittenWidthSpec | ( | TypeSpecifierWidth | written | ) | [inline] |