clang API Documentation
Represents a type that was referred to via a qualified name, e.g., N::M::type. More...
#include <Type.h>


Public Member Functions | |
| NestedNameSpecifier * | getQualifier () 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 |
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.
| static bool clang::QualifiedNameType::classof | ( | const QualifiedNameType * | T | ) | [inline, static] |
| 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] |
| 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] |
| 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().
friend class ASTContext [friend] |
Reimplemented from clang::Type.