class DecltypeType

Declaration

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

Description

Represents the type `decltype(expr)` (C++11).

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

Inherits from: Type

Member Variables

private clang::Expr* E
private clang::QualType UnderlyingType

Inherited from Type:

protected

Method Overview

Inherited from Type:

Inherited from ExtQualsTypeCommonBase:

    Methods

    DecltypeType(
        clang::Expr* E,
        clang::QualType underlyingType,
        clang::QualType can = clang::QualType())

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

    Parameters

    clang::Expr* E
    clang::QualType underlyingType
    clang::QualType can = clang::QualType()

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

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

    Parameters

    const clang::Type* T

    clang::QualType desugar() const

    Description

    Remove a single level of sugar.

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

    clang::Expr* getUnderlyingExpr() const

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

    clang::QualType getUnderlyingType() const

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

    bool isSugared() const

    Description

    Returns whether this type directly provides sugar.

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