clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::AutoType Class Reference

Represents a C++11 auto or C++1y decltype(auto) type. More...

#include <Type.h>

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

List of all members.

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

Detailed Description

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.

Definition at line 3676 of file Type.h.


Member Function Documentation

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]

Definition at line 3695 of file Type.h.

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::isDeduced ( ) const [inline]
bool clang::AutoType::isSugared ( ) const [inline]

Definition at line 3694 of file Type.h.

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().


Friends And Related Function Documentation

friend class ASTContext [friend]

Reimplemented from clang::Type.

Definition at line 3689 of file Type.h.


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