clang API Documentation
Wrapper for source info for tag types. Note that this only records source info for the name itself; a type written 'struct foo' should be represented as an ElaboratedTypeLoc. We currently only do that when C++ is enabled because of the expense of creating an ElaboratedType node for so many type references in C. More...
#include <TypeLoc.h>


Public Member Functions | |
| TagDecl * | getDecl () const |
| bool | isDefinition () const |
| True if the tag was defined in this type specifier. | |
Wrapper for source info for tag types. Note that this only records source info for the name itself; a type written 'struct foo' should be represented as an ElaboratedTypeLoc. We currently only do that when C++ is enabled because of the expense of creating an ElaboratedType node for so many type references in C.
| TagDecl* clang::TagTypeLoc::getDecl | ( | ) | const [inline] |
Reimplemented in clang::EnumTypeLoc, and clang::RecordTypeLoc.
Definition at line 571 of file TypeLoc.h.
References clang::ConcreteTypeLoc< UnqualTypeLoc, TypeSpecTypeLoc, Type, TypeSpecLocInfo >::getTypePtr().
| bool clang::TagTypeLoc::isDefinition | ( | ) | const [inline] |
True if the tag was defined in this type specifier.
Definition at line 574 of file TypeLoc.h.
References clang::NamedDecl::getIdentifier(), clang::Decl::getLocation(), clang::TypeSpecTypeLoc::getNameLoc(), and clang::TagDecl::isCompleteDefinition().