class RecordType

Declaration

class RecordType : public TagType { /* full declaration omitted */ };

Description

A helper class that allows the use of isa/cast/dyncast to detect TagType objects of structs/unions/classes.

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

Inherits from: TagType

Member Variables

Inherited from Type:

protected

Method Overview

Inherited from TagType:

Inherited from Type:

Inherited from ExtQualsTypeCommonBase:

    Methods

    RecordType(const clang::RecordDecl* D)

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

    Parameters

    const clang::RecordDecl* D

    RecordType(clang::Type::TypeClass TC,
               clang::RecordDecl* D)

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

    Parameters

    clang::Type::TypeClass TC
    clang::RecordDecl* D

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

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

    Parameters

    const clang::Type* T

    clang::QualType desugar() const

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

    clang::RecordDecl* getDecl() const

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

    bool hasConstFields() const

    Description

    Recursively check all fields in the record for const-ness. If any field is declared const, return true. Otherwise, return false.

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

    bool isSugared() const

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