class ArrayType

Declaration

class ArrayType : public Type, public Node { /* full declaration omitted */ };

Description

Represents an array type, per C99 6.7.5.2 - Array Declarators.

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

Inherits from: Type, FoldingSetBase::Node

Member Variables

private clang::QualType ElementType
The element type of the array.

Inherited from Type:

protected

Method Overview

Inherited from FoldingSetBase::Node:

Inherited from Type:

Inherited from ExtQualsTypeCommonBase:

    Methods

    ArrayType(clang::Type::TypeClass tc,
              clang::QualType et,
              clang::QualType can,
              clang::ArrayType::ArraySizeModifier sm,
              unsigned int tq,
              const clang::Expr* sz = nullptr)

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

    Parameters

    clang::Type::TypeClass tc
    clang::QualType et
    clang::QualType can
    clang::ArrayType::ArraySizeModifier sm
    unsigned int tq
    const clang::Expr* sz = nullptr

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

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

    Parameters

    const clang::Type* T

    clang::QualType getElementType() const

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

    unsigned int getIndexTypeCVRQualifiers() const

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

    clang::Qualifiers getIndexTypeQualifiers() const

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

    clang::ArrayType::ArraySizeModifier
    getSizeModifier() const

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