clang API Documentation
Represents a C++11 auto or C++1y decltype(auto) type. More...
#include <Type.h>


Public Member Functions | |
| bool | isDecltypeAuto () const |
| bool | isSugared () const |
| QualType | desugar () const |
| QualType | getDeducedType () const |
| Get the type deduced for this auto type, or null if it's either not been deduced or was deduced to a dependent type. | |
| bool | isDeduced () const |
| void | Profile (llvm::FoldingSetNodeID &ID) |
Static Public Member Functions | |
| static void | Profile (llvm::FoldingSetNodeID &ID, QualType Deduced, bool IsDecltypeAuto, bool IsDependent) |
| static bool | classof (const Type *T) |
Friends | |
| class | ASTContext |
Represents a C++11 auto or C++1y decltype(auto) type.
These types are usually a placeholder for a deduced type. However, before the initializer is attached, or if the initializer is type-dependent, there is no deduced type and an auto type is canonical. In the latter case, it is also a dependent type.
| static bool clang::AutoType::classof | ( | const Type * | T | ) | [inline, static] |
Definition at line 3718 of file Type.h.
References clang::Type::getTypeClass().
| QualType clang::AutoType::desugar | ( | ) | const [inline] |
| QualType clang::AutoType::getDeducedType | ( | ) | const [inline] |
Get the type deduced for this auto type, or null if it's either not been deduced or was deduced to a dependent type.
Definition at line 3699 of file Type.h.
Referenced by clang::Sema::BuildDeclaratorGroup(), clang::Sema::DeduceFunctionTypeFromReturnExpr(), clang::Sema::MergeFunctionDecl(), SpecializeCorrespondingLambdaCallOperatorAndInvoker(), and clang::ASTNodeImporter::VisitAutoType().
| bool clang::AutoType::isDecltypeAuto | ( | ) | const [inline] |
Definition at line 3692 of file Type.h.
Referenced by clang::Sema::BuildDeclaratorGroup(), clang::Sema::DeduceFunctionTypeFromReturnExpr(), GetFullTypeForDeclarator(), and clang::ASTNodeImporter::VisitAutoType().
| bool clang::AutoType::isDeduced | ( | ) | const [inline] |
Definition at line 3702 of file Type.h.
Referenced by clang::Sema::DeduceFunctionTypeFromReturnExpr(), clang::Type::isUndeducedType(), and clang::Sema::MergeFunctionDecl().
| bool clang::AutoType::isSugared | ( | ) | const [inline] |
| void clang::AutoType::Profile | ( | llvm::FoldingSetNodeID & | ID | ) | [inline] |
Definition at line 3706 of file Type.h.
Referenced by clang::ASTContext::getAutoType().
| static void clang::AutoType::Profile | ( | llvm::FoldingSetNodeID & | ID, |
| QualType | Deduced, | ||
| bool | IsDecltypeAuto, | ||
| bool | IsDependent | ||
| ) | [inline, static] |
Definition at line 3711 of file Type.h.
References clang::QualType::getAsOpaquePtr().
friend class ASTContext [friend] |
Reimplemented from clang::Type.