clang 20.0.0git
|
#include "clang/ExtractAPI/TypedefUnderlyingTypeResolver.h"
Public Member Functions | |
const NamedDecl * | getUnderlyingTypeDecl (QualType Type) const |
Gets the underlying type declaration. | |
SymbolReference | getSymbolReferenceForType (QualType Type, APISet &API) const |
Get a SymbolReference for the given type. | |
std::string | getUSRForType (QualType Type) const |
Get a USR for the given type. | |
TypedefUnderlyingTypeResolver (ASTContext &Context) | |
Definition at line 28 of file TypedefUnderlyingTypeResolver.h.
|
inlineexplicit |
Definition at line 38 of file TypedefUnderlyingTypeResolver.h.
SymbolReference TypedefUnderlyingTypeResolver::getSymbolReferenceForType | ( | QualType | Type, |
APISet & | API | ||
) | const |
Get a SymbolReference for the given type.
Definition at line 48 of file TypedefUnderlyingTypeResolver.cpp.
References clang::extractapi::APISet::createSymbolReference(), clang::index::generateUSRForDecl(), clang::index::generateUSRForType(), clang::Type::getAs(), clang::Decl::getImportedOwningModule(), clang::NamedDecl::getName(), getUnderlyingTypeDecl(), and clang::TypeName.
Referenced by clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::VisitTypedefNameDecl().
Gets the underlying type declaration.
Definition at line 22 of file TypedefUnderlyingTypeResolver.cpp.
References clang::Type::getAs(), clang::TypedefType::getDecl(), clang::TypedefNameDecl::getUnderlyingType(), and clang::Type::isTypedefNameType().
Referenced by getSymbolReferenceForType(), and getUSRForType().
std::string TypedefUnderlyingTypeResolver::getUSRForType | ( | QualType | Type | ) | const |
Get a USR for the given type.
Definition at line 70 of file TypedefUnderlyingTypeResolver.cpp.
References clang::index::generateUSRForDecl(), clang::index::generateUSRForType(), and getUnderlyingTypeDecl().