class DeducedType

Declaration

class DeducedType : public Type { /* full declaration omitted */ };

Description

Common base class for placeholders for types that get replaced by placeholder type deduction: C++11 auto, C++14 decltype(auto), C++17 deduced class template types, and constrained type names. These types are usually a placeholder for a deduced type. However, before the initializer is attached, or (usually) if the initializer is type-dependent, there is no deduced type and the type is canonical. In the latter case, it is also a dependent type.

Declared at: clang/include/clang/AST/Type.h:5073

Inherits from: Type

Member Variables

private clang::QualType DeducedAsType

Inherited from Type:

protected

Method Overview

  • protected DeducedType(clang::Type::TypeClass TC, clang::QualType DeducedAsType, clang::TypeDependence ExtraDependence, clang::QualType Canon)
  • public static bool classof(const clang::Type * T)
  • public clang::QualType desugar() const
  • public clang::QualType getDeducedType() const
  • public bool isDeduced() const
  • public bool isSugared() const

Inherited from Type:

Inherited from ExtQualsTypeCommonBase:

    Methods

    DeducedType(clang::Type::TypeClass TC,
                clang::QualType DeducedAsType,
                clang::TypeDependence ExtraDependence,
                clang::QualType Canon)

    Declared at: clang/include/clang/AST/Type.h:5077

    Parameters

    clang::Type::TypeClass TC
    clang::QualType DeducedAsType
    clang::TypeDependence ExtraDependence
    clang::QualType Canon

    static bool classof(const clang::Type* T)

    Declared at: clang/include/clang/AST/Type.h:5099

    Parameters

    const clang::Type* T

    clang::QualType desugar() const

    Declared at: clang/include/clang/AST/Type.h:5088

    clang::QualType getDeducedType() const

    Description

    Get the type deduced for this placeholder type, or null if it has not been deduced.

    Declared at: clang/include/clang/AST/Type.h:5094

    bool isDeduced() const

    Declared at: clang/include/clang/AST/Type.h:5095

    bool isSugared() const

    Declared at: clang/include/clang/AST/Type.h:5087