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

Function FindConstructorName

NULLC/Callbacks.cpp:2784–2795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2782}
2783
2784const char* FindConstructorName(TypeInfo* type)
2785{
2786 // Remove class arguments
2787 if(type->genericBase)
2788 type = type->genericBase;
2789 if(!type->name)
2790 return NULL;
2791 // Remove namespaces
2792 if(const char* pos = strrchr(type->name, '.'))
2793 return pos + 1;
2794 return type->name;
2795}
2796
2797bool HasConstructor(TypeInfo* type, unsigned arguments, bool* callDefault)
2798{

Callers 4

HasConstructorFunction · 0.85
AddFunctionCallNodeFunction · 0.85
TypeFinishFunction · 0.85
ParseTerminalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected