clang API Documentation
#include <Decl.h>
Public Member Functions | |
const Type * | getTypeForDecl () const |
void | setTypeForDecl (const Type *TD) |
SourceLocation | getLocStart () const LLVM_READONLY |
void | setLocStart (SourceLocation L) |
SourceRange | getSourceRange () const override LLVM_READONLY |
Source range that this declaration covers. | |
Static Public Member Functions | |
static bool | classof (const Decl *D) |
static bool | classofKind (Kind K) |
Protected Member Functions | |
TypeDecl (Kind DK, DeclContext *DC, SourceLocation L, IdentifierInfo *Id, SourceLocation StartL=SourceLocation()) | |
Friends | |
class | ASTContext |
clang::TypeDecl::TypeDecl | ( | Kind | DK, |
DeclContext * | DC, | ||
SourceLocation | L, | ||
IdentifierInfo * | Id, | ||
SourceLocation | StartL = SourceLocation() |
||
) | [inline, protected] |
static bool clang::TypeDecl::classof | ( | const Decl * | D | ) | [inline, static] |
Reimplemented from clang::NamedDecl.
Reimplemented in clang::UnresolvedUsingTypenameDecl, clang::EnumDecl, clang::TagDecl, clang::TypeAliasDecl, clang::TypedefDecl, clang::TypedefNameDecl, clang::ClassTemplatePartialSpecializationDecl, clang::CXXRecordDecl, clang::ClassTemplateSpecializationDecl, and clang::TemplateTypeParmDecl.
Definition at line 2473 of file Decl.h.
References clang::Decl::getKind().
static bool clang::TypeDecl::classofKind | ( | Kind | K | ) | [inline, static] |
Reimplemented from clang::NamedDecl.
Reimplemented in clang::UnresolvedUsingTypenameDecl, clang::EnumDecl, clang::TagDecl, clang::TypeAliasDecl, clang::TypedefDecl, clang::TypedefNameDecl, clang::ClassTemplatePartialSpecializationDecl, clang::CXXRecordDecl, clang::ClassTemplateSpecializationDecl, and clang::TemplateTypeParmDecl.
SourceLocation clang::TypeDecl::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Decl.
Definition at line 2463 of file Decl.h.
Referenced by clang::Sema::ActOnStartCXXMemberDeclarations(), CheckObjCBridgeCFCast(), CheckObjCBridgeNSCast(), clang::Sema::checkObjCBridgeRelatedComponents(), clang::Sema::CheckObjCBridgeRelatedConversions(), clang::Sema::ComputeDefaultedCopyAssignmentExceptionSpec(), clang::Sema::ComputeDefaultedCopyCtorExceptionSpec(), clang::Sema::ComputeDefaultedMoveAssignmentExceptionSpec(), clang::TemplateTypeParmDecl::getSourceRange(), clang::TypedefDecl::getSourceRange(), clang::TypeAliasDecl::getSourceRange(), clang::UnresolvedUsingTypenameDecl::getUsingLoc(), clang::TemplateDeclInstantiator::InstantiateClassTemplatePartialSpecialization(), clang::TemplateDeclInstantiator::InstantiateTypedefNameDecl(), rewriteToNSEnumDecl(), rewriteToNSMacroDecl(), clang::Sema::tryCaptureVariable(), clang::ASTNodeImporter::VisitClassTemplateDecl(), clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(), clang::ASTNodeImporter::VisitEnumDecl(), clang::ASTNodeImporter::VisitRecordDecl(), clang::ASTNodeImporter::VisitTemplateTypeParmDecl(), clang::ASTDeclWriter::VisitTypeDecl(), and clang::ASTNodeImporter::VisitTypedefNameDecl().
SourceRange clang::TypeDecl::getSourceRange | ( | ) | const [inline, override, virtual] |
Source range that this declaration covers.
Reimplemented from clang::Decl.
Reimplemented in clang::TagDecl, clang::TypeAliasDecl, clang::TypedefDecl, clang::ClassTemplateSpecializationDecl, and clang::TemplateTypeParmDecl.
const Type* clang::TypeDecl::getTypeForDecl | ( | ) | const [inline] |
Definition at line 2460 of file Decl.h.
Referenced by clang::Sema::BuildBaseInitializer(), clang::Sema::BuildDelegatingInitializer(), ConvertDeclSpecToType(), clang::Sema::DeduceAutoType(), DiagnoseBadDeduction(), clang::Sema::DiagnoseUnusedNestedTypedefs(), clang::CodeGen::CGDebugInfo::EmitGlobalVariable(), clang::CodeGen::CGCXXABI::EmitMemberPointer(), clang::ento::SValBuilder::getCXXThis(), clang::TemplateTypeParmDecl::getDepth(), clang::TemplateTypeParmDecl::getIndex(), clang::ClassTemplatePartialSpecializationDecl::getInjectedSpecializationType(), clang::DeclContext::getPrimaryContext(), clang::TemplateTypeParmDecl::isParameterPack(), recoverFromMSUnqualifiedLookup(), clang::TagDecl::setTypedefNameForAnonDecl(), and clang::ASTDeclWriter::VisitTypeDecl().
void clang::TypeDecl::setLocStart | ( | SourceLocation | L | ) | [inline] |
Definition at line 2464 of file Decl.h.
Referenced by clang::Sema::InstantiateClass(), and clang::ASTDeclReader::VisitTypeDecl().
void clang::TypeDecl::setTypeForDecl | ( | const Type * | TD | ) | [inline] |
Definition at line 2461 of file Decl.h.
Referenced by clang::TemplateTypeParmDecl::Create(), and clang::Sema::MergeTypedefNameDecl().
friend class ASTContext [friend] |