clang 22.0.0git
clang::CodeGen::RequiredArgs Class Reference

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

#include "clang/CodeGen/CGFunctionInfo.h"

Public Types

enum  All_t { All }

Public Member Functions

 RequiredArgs (All_t _)
 RequiredArgs (unsigned n)
bool allowsOptionalArgs () const
unsigned getNumRequiredArgs () const
bool isRequiredArg (unsigned argIdx) const
 Return true if the argument at a given index is required.
unsigned getOpaqueData () const

Static Public Member Functions

static RequiredArgs forPrototypePlus (const FunctionProtoType *prototype, unsigned additional)
 Compute the arguments required by the given formal prototype, given that there may be some additional, non-formal arguments in play.
static RequiredArgs forPrototypePlus (CanQual< FunctionProtoType > prototype, unsigned additional)
static RequiredArgs forPrototype (const FunctionProtoType *prototype)
static RequiredArgs forPrototype (CanQual< FunctionProtoType > prototype)
static RequiredArgs getFromOpaqueData (unsigned value)

Detailed Description

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

Definition at line 525 of file CGFunctionInfo.h.

Member Enumeration Documentation

◆ All_t

Enumerator
All 

Definition at line 530 of file CGFunctionInfo.h.

Constructor & Destructor Documentation

◆ RequiredArgs() [1/2]

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

◆ RequiredArgs() [2/2]

clang::CodeGen::RequiredArgs::RequiredArgs ( unsigned n)
inlineexplicit

Definition at line 533 of file CGFunctionInfo.h.

Member Function Documentation

◆ allowsOptionalArgs()

bool clang::CodeGen::RequiredArgs::allowsOptionalArgs ( ) const
inline

◆ forPrototype() [1/2]

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

◆ forPrototype() [2/2]

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

Definition at line 561 of file CGFunctionInfo.h.

References forPrototypePlus(), and RequiredArgs().

◆ forPrototypePlus() [1/2]

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

◆ forPrototypePlus() [2/2]

◆ getFromOpaqueData()

RequiredArgs clang::CodeGen::RequiredArgs::getFromOpaqueData ( unsigned value)
inlinestatic

Definition at line 581 of file CGFunctionInfo.h.

References All, and RequiredArgs().

◆ getNumRequiredArgs()

unsigned clang::CodeGen::RequiredArgs::getNumRequiredArgs ( ) const
inline

◆ getOpaqueData()

unsigned clang::CodeGen::RequiredArgs::getOpaqueData ( ) const
inline

Definition at line 580 of file CGFunctionInfo.h.

Referenced by clang::CodeGen::CGFunctionInfo::Profile().

◆ isRequiredArg()

bool clang::CodeGen::RequiredArgs::isRequiredArg ( unsigned argIdx) const
inline

Return true if the argument at a given index is required.

Definition at line 576 of file CGFunctionInfo.h.


The documentation for this class was generated from the following file: