class RequiredArgs

Declaration

class RequiredArgs { /* full declaration omitted */ };

Description

A class for recording the number of arguments that a function signature requires.

Declared at: clang/include/clang/CodeGen/CGFunctionInfo.h:480

Member Variables

private unsigned int NumRequired
The number of required arguments, or ~0 if the signature does not permit optional arguments.

Method Overview

  • public RequiredArgs(clang::CodeGen::RequiredArgs::All_t _)
  • public RequiredArgs(unsigned int n)
  • public bool allowsOptionalArgs() const
  • public static clang::CodeGen::RequiredArgs forPrototype(const clang::FunctionProtoType * prototype)
  • public static clang::CodeGen::RequiredArgs forPrototype(CanQual<clang::FunctionProtoType> prototype)
  • public static clang::CodeGen::RequiredArgs forPrototypePlus(const clang::FunctionProtoType * prototype, unsigned int additional)
  • public static clang::CodeGen::RequiredArgs forPrototypePlus(CanQual<clang::FunctionProtoType> prototype, unsigned int additional)
  • public static clang::CodeGen::RequiredArgs getFromOpaqueData(unsigned int value)
  • public unsigned int getNumRequiredArgs() const
  • public unsigned int getOpaqueData() const

Methods

RequiredArgs(
    clang::CodeGen::RequiredArgs::All_t _)

Declared at: clang/include/clang/CodeGen/CGFunctionInfo.h:487

Parameters

clang::CodeGen::RequiredArgs::All_t _

RequiredArgs(unsigned int n)

Declared at: clang/include/clang/CodeGen/CGFunctionInfo.h:488

Parameters

unsigned int n

bool allowsOptionalArgs() const

Declared at: clang/include/clang/CodeGen/CGFunctionInfo.h:524

static clang::CodeGen::RequiredArgs forPrototype(
    const clang::FunctionProtoType* prototype)

Declared at: clang/include/clang/CodeGen/CGFunctionInfo.h:516

Parameters

const clang::FunctionProtoType* prototype

static clang::CodeGen::RequiredArgs forPrototype(
    CanQual<clang::FunctionProtoType> prototype)

Declared at: clang/include/clang/CodeGen/CGFunctionInfo.h:520

Parameters

CanQual<clang::FunctionProtoType> prototype

static clang::CodeGen::RequiredArgs
forPrototypePlus(
    const clang::FunctionProtoType* prototype,
    unsigned int additional)

Description

Compute the arguments required by the given formal prototype, given that there may be some additional, non-formal arguments in play. If FD is not null, this will consider pass_object_size params in FD.

Declared at: clang/include/clang/CodeGen/CGFunctionInfo.h:497

Parameters

const clang::FunctionProtoType* prototype
unsigned int additional

static clang::CodeGen::RequiredArgs
forPrototypePlus(
    CanQual<clang::FunctionProtoType> prototype,
    unsigned int additional)

Declared at: clang/include/clang/CodeGen/CGFunctionInfo.h:511

Parameters

CanQual<clang::FunctionProtoType> prototype
unsigned int additional

static clang::CodeGen::RequiredArgs
getFromOpaqueData(unsigned int value)

Declared at: clang/include/clang/CodeGen/CGFunctionInfo.h:531

Parameters

unsigned int value

unsigned int getNumRequiredArgs() const

Declared at: clang/include/clang/CodeGen/CGFunctionInfo.h:525

unsigned int getOpaqueData() const

Declared at: clang/include/clang/CodeGen/CGFunctionInfo.h:530