MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / stripTemplateParameters

Function stripTemplateParameters

lib/checkunusedfunctions.cpp:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49static const CWE CWE561(561U); // Dead Code
50
51static std::string stripTemplateParameters(const std::string& funcName) {
52 std::string name = funcName;
53 const auto pos = name.find('<');
54 if (pos > 0 && pos != std::string::npos)
55 name.erase(pos - 1);
56 return name;
57}
58
59//---------------------------------------------------------------------------
60// FUNCTION USAGE - Check for unused functions etc

Callers 2

parseTokensMethod · 0.85
analyseWholeProgramMethod · 0.85

Calls 2

findMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected