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

Function objfile

tools/dmake/dmake.cpp:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50static std::string objfile(std::string cppfile)
51{
52 cppfile.erase(cppfile.rfind('.'));
53 if (startsWith(cppfile, "../externals/simplecpp/")) // oss-fuzz
54 cppfile = cppfile.substr(23);
55 else if (startsWith(cppfile, "../externals/tinyxml2/")) // oss-fuzz
56 cppfile = cppfile.substr(22);
57 return builddir(cppfile + ".o");
58}
59
60static std::string objfiles(const std::vector<std::string> &files)
61{

Callers 2

objfilesFunction · 0.85
compilefilesFunction · 0.85

Calls 3

builddirFunction · 0.85
startsWithFunction · 0.50
eraseMethod · 0.45

Tested by

no test coverage detected