clang API Documentation

Public Member Functions
clang::TagTypeLoc Class Reference

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>

Inheritance diagram for clang::TagTypeLoc:
Inheritance graph
[legend]
Collaboration diagram for clang::TagTypeLoc:
Collaboration graph
[legend]

List of all members.

Public Member Functions

TagDeclgetDecl () const
bool isDefinition () const
 True if the tag was defined in this type specifier.

Detailed Description

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.

Definition at line 567 of file TypeLoc.h.


Member Function Documentation

TagDecl* clang::TagTypeLoc::getDecl ( ) const [inline]
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().


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