clang 23.0.0git
clang::CIRGen::RequiredArgs Class Reference

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

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CIR/CodeGen/CIRGenFunctionInfo.h"

Public Types

enum  All_t { All }

Public Member Functions

 RequiredArgs (All_t _)
 RequiredArgs (unsigned n)
unsigned getOpaqueData () const
bool allowsOptionalArgs () const
unsigned getNumRequiredArgs () const

Static Public Member Functions

static RequiredArgs getFromProtoWithExtraSlots (const clang::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 getFromProtoWithExtraSlots (clang::CanQual< clang::FunctionProtoType > prototype, unsigned additional)

Detailed Description

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

Definition at line 28 of file CIRGenFunctionInfo.h.

Member Enumeration Documentation

◆ All_t

Enumerator
All 

Definition at line 34 of file CIRGenFunctionInfo.h.

Constructor & Destructor Documentation

◆ RequiredArgs() [1/2]

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

Definition at line 36 of file CIRGenFunctionInfo.h.

Referenced by getFromProtoWithExtraSlots().

◆ RequiredArgs() [2/2]

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

Definition at line 37 of file CIRGenFunctionInfo.h.

Member Function Documentation

◆ allowsOptionalArgs()

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

Definition at line 41 of file CIRGenFunctionInfo.h.

Referenced by getNumRequiredArgs().

◆ getFromProtoWithExtraSlots() [1/2]

RequiredArgs clang::CIRGen::RequiredArgs::getFromProtoWithExtraSlots ( clang::CanQual< clang::FunctionProtoType > prototype,
unsigned additional )
inlinestatic

◆ getFromProtoWithExtraSlots() [2/2]

RequiredArgs clang::CIRGen::RequiredArgs::getFromProtoWithExtraSlots ( const clang::FunctionProtoType * prototype,
unsigned additional )
inlinestatic

◆ getNumRequiredArgs()

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

◆ getOpaqueData()

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

Definition at line 39 of file CIRGenFunctionInfo.h.


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