Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
clang::TypeName Namespace Reference

Functions

QualType getFullyQualifiedType (QualType QT, const ASTContext &Ctx, bool WithGlobalNsPrefix)
static NestedNameSpecifier * createNestedNameSpecifier (const ASTContext &Ctx, const NamespaceDecl *Namesp, bool WithGlobalNsPrefix)
static NestedNameSpecifier * createNestedNameSpecifier (const ASTContext &Ctx, const TypeDecl *TD, bool FullyQualify, bool WithGlobalNsPrefix)
static NestedNameSpecifier * createNestedNameSpecifierForScopeOf (const ASTContext &Ctx, const Decl *decl, bool FullyQualified, bool WithGlobalNsPrefix)
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 TypegetFullyQualifiedTemplateType (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)
std::string getFullyQualifiedName (QualType QT, const ASTContext &Ctx, const PrintingPolicy &Policy, bool WithGlobalNsPrefix=false)

Function Documentation

◆ createNestedNameSpecifier() [1/2]

NestedNameSpecifier * clang::TypeName::createNestedNameSpecifier ( const ASTContext & Ctx,
const NamespaceDecl * Namesp,
bool WithGlobalNsPrefix )
inlinestatic

Create a NestedNameSpecifier for Namesp and its enclosing scopes.

Parameters
[in]Ctx- the AST Context to be used.
[in]Namesp- the NamespaceDecl for which a NestedNameSpecifier is requested.
[in]WithGlobalNsPrefix- Indicate whether the global namespace specifier "::" should be prepended or not.

Definition at line 844 of file QualTypeNames.h.

◆ createNestedNameSpecifier() [2/2]

NestedNameSpecifier * clang::TypeName::createNestedNameSpecifier ( const ASTContext & Ctx,
const TypeDecl * TD,
bool FullyQualify,
bool WithGlobalNsPrefix )
inlinestatic

Create a NestedNameSpecifier for TagDecl and its enclosing scopes.

Parameters
[in]Ctx- the AST Context to be used.
[in]TD- the TagDecl for which a NestedNameSpecifier is requested.
[in]FullyQualify- Convert all template arguments into fully qualified names.
[in]WithGlobalNsPrefix- Indicate whether the global namespace specifier "::" should be prepended or not.

Definition at line 860 of file QualTypeNames.h.

◆ createNestedNameSpecifierForScopeOf() [1/2]

NestedNameSpecifier * clang::TypeName::createNestedNameSpecifierForScopeOf ( const ASTContext & Ctx,
const Decl * Decl,
bool FullyQualified,
bool WithGlobalNsPrefix )
inlinestatic

Create a nested name specifier for the declaring context of the type.

Definition at line 790 of file QualTypeNames.h.

◆ createNestedNameSpecifierForScopeOf() [2/2]

NestedNameSpecifier * clang::TypeName::createNestedNameSpecifierForScopeOf ( const ASTContext & Ctx,
const Type * TypePtr,
bool FullyQualified,
bool WithGlobalNsPrefix )
inlinestatic

Create a nested name specifier for the declaring context of the type.

Definition at line 821 of file QualTypeNames.h.

◆ createOuterNNS()

NestedNameSpecifier * clang::TypeName::createOuterNNS ( const ASTContext & Ctx,
const Decl * D,
bool FullyQualify,
bool WithGlobalNsPrefix )
inlinestatic

Definition at line 709 of file QualTypeNames.h.

◆ getFullyQualifiedName()

std::string clang::TypeName::getFullyQualifiedName ( QualType QT,
const ASTContext & Ctx,
const PrintingPolicy & Policy,
bool WithGlobalNsPrefix = false )
inline

Definition at line 996 of file QualTypeNames.h.

Referenced by get_fully_qualified_type_name().

Here is the caller graph for this function:

◆ getFullyQualifiedNestedNameSpecifier()

NestedNameSpecifier * clang::TypeName::getFullyQualifiedNestedNameSpecifier ( const ASTContext & Ctx,
NestedNameSpecifier * scope,
bool WithGlobalNsPrefix )
inlinestatic

Return a fully qualified version of this name specifier.

Definition at line 734 of file QualTypeNames.h.

◆ getFullyQualifiedTemplateArgument()

bool clang::TypeName::getFullyQualifiedTemplateArgument ( const ASTContext & Ctx,
TemplateArgument & Arg,
bool WithGlobalNsPrefix )
inlinestatic

Definition at line 603 of file QualTypeNames.h.

◆ getFullyQualifiedTemplateName()

bool clang::TypeName::getFullyQualifiedTemplateName ( const ASTContext & Ctx,
TemplateName & TName,
bool WithGlobalNsPrefix )
inlinestatic

Definition at line 564 of file QualTypeNames.h.

◆ getFullyQualifiedTemplateType()

const Type * clang::TypeName::getFullyQualifiedTemplateType ( const ASTContext & Ctx,
const Type * TypePtr,
bool WithGlobalNsPrefix )
inlinestatic

Definition at line 629 of file QualTypeNames.h.

◆ getFullyQualifiedType()

QualType clang::TypeName::getFullyQualifiedType ( QualType QT,
const ASTContext & Ctx,
bool WithGlobalNsPrefix = false )
inline

Return the fully qualified type, including fully-qualified versions of any template parameters.

Definition at line 884 of file QualTypeNames.h.