class FunctionType

Declaration

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

Description

FunctionType - C99 6.7.5.3 - Function Declarators. This is the common base class of FunctionNoProtoType and FunctionProtoType.

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

Inherits from: Type

Member Variables

private clang::QualType ResultType

Inherited from Type:

protected

Method Overview

Inherited from Type:

Inherited from ExtQualsTypeCommonBase:

    Methods

    FunctionType(clang::Type::TypeClass tc,
                 clang::QualType res,
                 clang::QualType Canonical,
                 clang::TypeDependence Dependence,
                 clang::FunctionType::ExtInfo Info)

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

    Parameters

    clang::Type::TypeClass tc
    clang::QualType res
    clang::QualType Canonical
    clang::TypeDependence Dependence
    clang::FunctionType::ExtInfo Info

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

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

    Parameters

    const clang::Type* T

    clang::CallingConv getCallConv() const

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

    clang::QualType getCallResultType(
        const clang::ASTContext& Context) const

    Description

    Determine the type of an expression that calls a function of this type.

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

    Parameters

    const clang::ASTContext& Context

    bool getCmseNSCallAttr() const

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

    clang::FunctionType::ExtInfo getExtInfo() const

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

    clang::Qualifiers getFastTypeQuals() const

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

    bool getHasRegParm() const

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

    static llvm::StringRef getNameForCallConv(
        clang::CallingConv CC)

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

    Parameters

    clang::CallingConv CC

    bool getNoReturnAttr() const

    Description

    Determine whether this function type includes the GNU noreturn attribute. The C++11 [[noreturn]] attribute does not affect the function type.

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

    unsigned int getRegParmType() const

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

    clang::QualType getReturnType() const

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

    bool isConst() const

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

    bool isRestrict() const

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

    bool isVolatile() const

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