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 356 of file QualTypeNames.h.

Referenced by getFullyQualifiedNestedNameSpecifier().

Here is the caller graph for this function:

◆ 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 372 of file QualTypeNames.h.

References getFullyQualifiedTemplateType().

Here is the call graph for this function:

◆ 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 302 of file QualTypeNames.h.

Referenced by createNestedNameSpecifierForScopeOf().

Here is the caller graph for this function:

◆ 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 333 of file QualTypeNames.h.

References createNestedNameSpecifierForScopeOf().

Referenced by getFullyQualifiedType().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createOuterNNS()

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

Definition at line 221 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 506 of file QualTypeNames.h.

References getFullyQualifiedType().

Referenced by get_fully_qualified_type_name().

Here is the call graph for this function:
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 246 of file QualTypeNames.h.

References createNestedNameSpecifier(), and getFullyQualifiedNestedNameSpecifier().

Referenced by getFullyQualifiedNestedNameSpecifier(), and getFullyQualifiedTemplateName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFullyQualifiedTemplateArgument()

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

Definition at line 115 of file QualTypeNames.h.

References getFullyQualifiedTemplateName(), and getFullyQualifiedType().

Referenced by getFullyQualifiedTemplateType().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFullyQualifiedTemplateName()

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

Definition at line 76 of file QualTypeNames.h.

References getFullyQualifiedNestedNameSpecifier().

Referenced by getFullyQualifiedTemplateArgument().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFullyQualifiedTemplateType()

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

Definition at line 141 of file QualTypeNames.h.

References getFullyQualifiedTemplateArgument().

Referenced by createNestedNameSpecifier(), and getFullyQualifiedType().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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 396 of file QualTypeNames.h.

References createNestedNameSpecifierForScopeOf(), getFullyQualifiedTemplateType(), and getFullyQualifiedType().

Referenced by getFullyQualifiedName(), getFullyQualifiedTemplateArgument(), and getFullyQualifiedType().

Here is the call graph for this function:
Here is the caller graph for this function: