MCPcopy Create free account
hub / github.com/avast/retdec / toolTypeToString

Function toolTypeToString

src/cpdetect/cptypes.cpp:340–364  ·  view source on GitHub ↗

* Get tool type name from type * @param toolType type * @return type as string */

Source from the content-addressed store, hash-verified

338 * @return type as string
339 */
340std::string toolTypeToString(ToolType toolType)
341{
342 switch (toolType) {
343 case ToolType::COMPILER:
344 return "compiler";
345
346 case ToolType::PACKER:
347 return "packer";
348
349 case ToolType::INSTALLER:
350 return "installer";
351
352 case ToolType::LINKER:
353 return "linker";
354
355 case ToolType::OTHER:
356 return "other tool";
357
358 case ToolType::UNKNOWN:
359 /* fall-thru */
360
361 default:
362 return "unknown";
363 }
364}
365
366/**
367 * Get packing info string from packing info

Callers 3

presentCompilerMethod · 0.85
presentCompilerMethod · 0.85
presentCompilerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected