MCPcopy Create free account
hub / github.com/WheretIB/nullc / GetClassFunctionName

Function GetClassFunctionName

NULLC/Callbacks.cpp:323–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323char* GetClassFunctionName(TypeInfo* type, const char* funcName)
324{
325 char *memberFuncName = AllocateString(type->GetFullNameLength() + 2 + (int)strlen(funcName) + 1);
326 char *curr = memberFuncName;
327 const char *typeName = type->GetFullTypeName();
328 while(*typeName)
329 *curr++ = *typeName++;
330 *curr++ = ':';
331 *curr++ = ':';
332 while(*funcName)
333 *curr++ = *funcName++;
334 *curr = 0;
335 return memberFuncName;
336}
337char* GetClassFunctionName(TypeInfo* type, InplaceStr funcName)
338{
339 char *memberFuncName = AllocateString(type->GetFullNameLength() + 2 + (int)(funcName.end - funcName.begin) + 1);

Callers 4

AddMemberAccessNodeFunction · 0.85
FunctionAddFunction · 0.85
AddMemberFunctionCallFunction · 0.85
ParseFunctionCallFunction · 0.85

Calls 3

AllocateStringFunction · 0.85
GetFullNameLengthMethod · 0.80
GetFullTypeNameMethod · 0.80

Tested by

no test coverage detected