clang 22.0.0git
|
A class for recording the number of arguments that a function signature requires. More...
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) |
A class for recording the number of arguments that a function signature requires.
Definition at line 27 of file CIRGenFunctionInfo.h.
Enumerator | |
---|---|
All |
Definition at line 33 of file CIRGenFunctionInfo.h.
|
inline |
Definition at line 35 of file CIRGenFunctionInfo.h.
Referenced by getFromProtoWithExtraSlots().
|
inlineexplicit |
Definition at line 36 of file CIRGenFunctionInfo.h.
|
inline |
Definition at line 40 of file CIRGenFunctionInfo.h.
Referenced by getNumRequiredArgs().
|
inlinestatic |
Definition at line 59 of file CIRGenFunctionInfo.h.
References getFromProtoWithExtraSlots(), and clang::CanQual< T >::getTypePtr().
|
inlinestatic |
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.
Definition at line 47 of file CIRGenFunctionInfo.h.
References All, clang::FunctionProtoType::getNumParams(), clang::FunctionProtoType::hasExtParameterInfos(), clang::FunctionProtoType::isVariadic(), and RequiredArgs().
Referenced by arrangeCIRFunctionInfo(), clang::CIRGen::CIRGenTypes::arrangeCXXConstructorCall(), arrangeFreeFunctionLikeCall(), commonBuildCXXMemberOrOperatorCall(), and getFromProtoWithExtraSlots().
|
inline |
Definition at line 64 of file CIRGenFunctionInfo.h.
References allowsOptionalArgs().
Referenced by clang::CIRGen::CIRGenFunctionInfo::getNumRequiredArgs().
|
inline |
Definition at line 38 of file CIRGenFunctionInfo.h.