class BuiltinType

Declaration

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

Description

This class is used for builtin types like 'int'. Builtin types are always canonical and have a literal name field.

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

Inherits from: Type

Member Variables

Inherited from Type:

protected

Method Overview

Inherited from Type:

Inherited from ExtQualsTypeCommonBase:

    Methods

    BuiltinType(clang::BuiltinType::Kind K)

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

    Parameters

    clang::BuiltinType::Kind K

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

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

    Parameters

    const clang::Type* T

    clang::QualType desugar() const

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

    clang::BuiltinType::Kind getKind() const

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

    llvm::StringRef getName(
        const clang::PrintingPolicy& Policy) const

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

    Parameters

    const clang::PrintingPolicy& Policy

    const char* getNameAsCString(
        const clang::PrintingPolicy& Policy) const

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

    Parameters

    const clang::PrintingPolicy& Policy

    bool isFloatingPoint() const

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

    bool isInteger() const

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

    bool isNonOverloadPlaceholderType() const

    Description

    Determines whether this type is a placeholder type other than Overload. Most placeholder types require only syntactic information about their context in order to be resolved (e.g. whether it is a call expression), which means they can (and should) be resolved in an earlier "phase" of analysis. Overload expressions sometimes pick up further information from their context, like whether the context expects a specific function-pointer type, and so frequently need special treatment.

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

    bool isPlaceholderType() const

    Description

    Determines whether this type is a placeholder type, i.e. a type which cannot appear in arbitrary positions in a fully-formed expression.

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

    static bool isPlaceholderTypeKind(
        clang::BuiltinType::Kind K)

    Description

    Determines whether the given kind corresponds to a placeholder type.

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

    Parameters

    clang::BuiltinType::Kind K

    bool isSVEBool() const

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

    bool isSignedInteger() const

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

    bool isSugared() const

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

    bool isUnsignedInteger() const

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