clang API Documentation

clang::QualifiedNameType Class Reference

Represents a type that was referred to via a qualified name, e.g., N::M::type. More...

#include <Type.h>

Inheritance diagram for clang::QualifiedNameType:
Inheritance graph
[legend]
Collaboration diagram for clang::QualifiedNameType:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NestedNameSpecifiergetQualifier () const
 Retrieve the qualification on this type.
QualType getNamedType () const
 Retrieve the type named by the qualified-id.
QualType desugar () const
 Remove a single level of sugar.
bool isSugared () const
 Returns whether this type directly provides sugar.
void Profile (llvm::FoldingSetNodeID &ID)

Static Public Member Functions

static void Profile (llvm::FoldingSetNodeID &ID, NestedNameSpecifier *NNS, QualType NamedType)
static bool classof (const Type *T)
static bool classof (const QualifiedNameType *T)

Friends

class ASTContext

Detailed Description

Represents a type that was referred to via a qualified name, e.g., N::M::type.

This type is used to keep track of a type name as written in the source code, including any nested-name-specifiers. The type itself is always "sugar", used to express what was written in the source code but containing no additional semantic information.

Definition at line 2620 of file Type.h.


Member Function Documentation

static bool clang::QualifiedNameType::classof ( const QualifiedNameType T  )  [inline, static]

Definition at line 2660 of file Type.h.

static bool clang::QualifiedNameType::classof ( const Type T  )  [inline, static]

Reimplemented from clang::Type.

Definition at line 2657 of file Type.h.

References clang::Type::getTypeClass().

QualType clang::QualifiedNameType::desugar (  )  const [inline]

Remove a single level of sugar.

Definition at line 2642 of file Type.h.

References getNamedType().

QualType clang::QualifiedNameType::getNamedType (  )  const [inline]

Retrieve the type named by the qualified-id.

Definition at line 2639 of file Type.h.

Referenced by desugar(), and IsStructurallyEquivalent().

NestedNameSpecifier* clang::QualifiedNameType::getQualifier (  )  const [inline]

Retrieve the qualification on this type.

Definition at line 2636 of file Type.h.

Referenced by IsStructurallyEquivalent().

bool clang::QualifiedNameType::isSugared (  )  const [inline]

Returns whether this type directly provides sugar.

Definition at line 2645 of file Type.h.

static void clang::QualifiedNameType::Profile ( llvm::FoldingSetNodeID &  ID,
NestedNameSpecifier NNS,
QualType  NamedType 
) [inline, static]

Definition at line 2651 of file Type.h.

References clang::QualType::Profile().

void clang::QualifiedNameType::Profile ( llvm::FoldingSetNodeID &  ID  )  [inline]

Definition at line 2647 of file Type.h.

Referenced by clang::ASTContext::getQualifiedNameType().


Friends And Related Function Documentation

friend class ASTContext [friend]

Reimplemented from clang::Type.

Definition at line 2632 of file Type.h.


The documentation for this class was generated from the following file: