Showing content from https://clang.llvm.org/doxygen/namespaceclang_1_1TypeName.html below:
clang: clang::TypeName Namespace Reference
std::string getFullyQualifiedName (QualType QT, const ASTContext &Ctx, const PrintingPolicy &Policy, bool WithGlobalNsPrefix=false) Get the fully qualified name for a type.
QualType getFullyQualifiedType (QualType QT, const ASTContext &Ctx, bool WithGlobalNsPrefix=false) Generates a QualType that can be used to name the same type if used at the end of the current translation unit.
static NestedNameSpecifier * createNestedNameSpecifier (const ASTContext &Ctx, const NamespaceDecl *Namesp, bool WithGlobalNsPrefix) Create a NestedNameSpecifier for Namesp and its enclosing scopes.
static NestedNameSpecifier * createNestedNameSpecifier (const ASTContext &Ctx, const TypeDecl *TD, bool FullyQualify, bool WithGlobalNsPrefix) Create a NestedNameSpecifier for TagDecl and its enclosing scopes.
static NestedNameSpecifier * createNestedNameSpecifierForScopeOf (const ASTContext &Ctx, const Decl *Decl, bool FullyQualified, bool WithGlobalNsPrefix) Create a nested name specifier for the declaring context of the type.
static NestedNameSpecifier * getFullyQualifiedNestedNameSpecifier (const ASTContext &Ctx, NestedNameSpecifier *Scope, bool WithGlobalNsPrefix) Return a fully qualified version of this name specifier.
static bool getFullyQualifiedTemplateName (const ASTContext &Ctx, TemplateName &TName, bool WithGlobalNsPrefix) static bool getFullyQualifiedTemplateArgument (const ASTContext &Ctx, TemplateArgument &Arg, bool WithGlobalNsPrefix) static const Type * getFullyQualifiedTemplateType (const ASTContext &Ctx, const Type *TypePtr, bool WithGlobalNsPrefix) static NestedNameSpecifier * createOuterNNS (const ASTContext &Ctx, const Decl *D, bool FullyQualify, bool WithGlobalNsPrefix) static NestedNameSpecifier * createNestedNameSpecifierForScopeOf (const ASTContext &Ctx, const Type *TypePtr, bool FullyQualified, bool WithGlobalNsPrefix) Create a nested name specifier for the declaring context of the type.
◆ createNestedNameSpecifier() [1/2] ◆ createNestedNameSpecifier() [2/2] ◆ createNestedNameSpecifierForScopeOf() [1/2] ◆ createNestedNameSpecifierForScopeOf() [2/2] ◆ createOuterNNS() ◆ getFullyQualifiedName()
Get the fully qualified name for a type.
This includes full qualification of all template parameters etc.
-
Parameters
-
[in] QT - the type for which the fully qualified name will be returned. [in] Ctx - the ASTContext to be used. [in] WithGlobalNsPrefix - If true, then the global namespace specifier "::" will be prepended to the fully qualified name.
Definition at line 478 of file QualTypeNames.cpp.
References clang::QualType::getAsString(), and getFullyQualifiedType().
◆ getFullyQualifiedNestedNameSpecifier()
Return a fully qualified version of this name specifier.
Definition at line 210 of file QualTypeNames.cpp.
References createNestedNameSpecifier(), clang::Type::getAs(), clang::Type::getAsCXXRecordDecl(), getFullyQualifiedNestedNameSpecifier(), clang::NestedNameSpecifier::Global, clang::NestedNameSpecifier::Identifier, clang::NestedNameSpecifier::Namespace, clang::NestedNameSpecifier::NamespaceAlias, clang::NestedNameSpecifier::Super, clang::NestedNameSpecifier::TypeSpec, and clang::NestedNameSpecifier::TypeSpecWithTemplate.
Referenced by getFullyQualifiedNestedNameSpecifier(), and getFullyQualifiedTemplateName().
◆ getFullyQualifiedTemplateArgument() ◆ getFullyQualifiedTemplateName() ◆ getFullyQualifiedTemplateType() static const Type * clang::TypeName::getFullyQualifiedTemplateType ( const ASTContext & Ctx, const Type * TypePtr, bool WithGlobalNsPrefix ) static ◆ getFullyQualifiedType()
Generates a QualType that can be used to name the same type if used at the end of the current translation unit.
Return the fully qualified type, including fully-qualified versions of any template parameters.
This ignores issues such as type shadowing.
-
Parameters
-
[in] QT - the type for which the fully qualified type will be returned. [in] Ctx - the ASTContext to be used. [in] WithGlobalNsPrefix - Indicate whether the global namespace specifier "::" should be prepended or not.
Definition at line 375 of file QualTypeNames.cpp.
References clang::Class, createNestedNameSpecifierForScopeOf(), clang::Type::getAs(), getFullyQualifiedTemplateType(), getFullyQualifiedType(), clang::QualType::getLocalQualifiers(), clang::Type::getPointeeType(), clang::QualType::getQualifiers(), clang::QualType::getTypePtr(), clang::QualType::hasLocalQualifiers(), and clang::None.
Referenced by AddResultTypeChunk(), getFullyQualifiedName(), getFullyQualifiedTemplateArgument(), and getFullyQualifiedType().
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4