clang API Documentation
#include <CGFunctionInfo.h>
Public Types | |
| enum | All_t { All } |
Public Member Functions | |
| RequiredArgs (All_t _) | |
| RequiredArgs (unsigned n) | |
| bool | allowsOptionalArgs () const |
| unsigned | getNumRequiredArgs () const |
| unsigned | getOpaqueData () const |
Static Public Member Functions | |
| static RequiredArgs | forPrototypePlus (const FunctionProtoType *prototype, unsigned additional) |
| static RequiredArgs | forPrototype (const FunctionProtoType *prototype) |
| static RequiredArgs | forPrototype (CanQual< FunctionProtoType > prototype) |
| static RequiredArgs | forPrototypePlus (CanQual< FunctionProtoType > prototype, unsigned additional) |
| static RequiredArgs | getFromOpaqueData (unsigned value) |
A class for recording the number of arguments that a function signature requires.
Definition at line 286 of file CGFunctionInfo.h.
Definition at line 291 of file CGFunctionInfo.h.
| clang::CodeGen::RequiredArgs::RequiredArgs | ( | All_t | _ | ) | [inline] |
Definition at line 293 of file CGFunctionInfo.h.
Referenced by forPrototypePlus(), and getFromOpaqueData().
| clang::CodeGen::RequiredArgs::RequiredArgs | ( | unsigned | n | ) | [inline, explicit] |
Definition at line 294 of file CGFunctionInfo.h.
| bool clang::CodeGen::RequiredArgs::allowsOptionalArgs | ( | ) | const [inline] |
Definition at line 320 of file CGFunctionInfo.h.
Referenced by getNumRequiredArgs(), and clang::CodeGen::CGFunctionInfo::isVariadic().
| static RequiredArgs clang::CodeGen::RequiredArgs::forPrototype | ( | const FunctionProtoType * | prototype | ) | [inline, static] |
Definition at line 307 of file CGFunctionInfo.h.
References forPrototypePlus().
Referenced by forPrototype().
| static RequiredArgs clang::CodeGen::RequiredArgs::forPrototype | ( | CanQual< FunctionProtoType > | prototype | ) | [inline, static] |
Definition at line 311 of file CGFunctionInfo.h.
References forPrototype(), and clang::CanQual< T >::getTypePtr().
| static RequiredArgs clang::CodeGen::RequiredArgs::forPrototypePlus | ( | const FunctionProtoType * | prototype, |
| unsigned | additional | ||
| ) | [inline, static] |
Compute the arguments required by the given formal prototype, given that there may be some additional, non-formal arguments in play.
Definition at line 301 of file CGFunctionInfo.h.
References All, clang::FunctionProtoType::getNumParams(), clang::FunctionProtoType::isVariadic(), and RequiredArgs().
Referenced by clang::CodeGen::CodeGenTypes::arrangeCXXConstructorCall(), arrangeLLVMFunctionInfo(), commonEmitCXXMemberOrOperatorCall(), clang::CodeGen::CodeGenFunction::EmitCallAndReturnForThunk(), clang::CodeGen::CodeGenFunction::EmitCXXMemberPointerCallExpr(), forPrototype(), and forPrototypePlus().
| static RequiredArgs clang::CodeGen::RequiredArgs::forPrototypePlus | ( | CanQual< FunctionProtoType > | prototype, |
| unsigned | additional | ||
| ) | [inline, static] |
Definition at line 315 of file CGFunctionInfo.h.
References forPrototypePlus(), and clang::CanQual< T >::getTypePtr().
| static RequiredArgs clang::CodeGen::RequiredArgs::getFromOpaqueData | ( | unsigned | value | ) | [inline, static] |
Definition at line 327 of file CGFunctionInfo.h.
References All, and RequiredArgs().
| unsigned clang::CodeGen::RequiredArgs::getNumRequiredArgs | ( | ) | const [inline] |
Definition at line 321 of file CGFunctionInfo.h.
References allowsOptionalArgs().
Referenced by clang::CodeGen::CGFunctionInfo::getNumRequiredArgs().
| unsigned clang::CodeGen::RequiredArgs::getOpaqueData | ( | ) | const [inline] |
Definition at line 326 of file CGFunctionInfo.h.
Referenced by clang::CodeGen::CGFunctionInfo::Profile().