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

Function builddir

tools/dmake/dmake.cpp:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38#include "../lib/utils.h"
39
40static std::string builddir(std::string filename)
41{
42 if (startsWith(filename,"lib/"))
43 filename = "$(libcppdir)" + filename.substr(3);
44 else if (startsWith(filename, "../lib/")) // oss-fuzz
45 filename = "$(libcppdir)" + filename.substr(6);
46
47 return filename;
48}
49
50static std::string objfile(std::string cppfile)
51{

Callers 2

objfileFunction · 0.85
compilefilesFunction · 0.85

Calls 1

startsWithFunction · 0.50

Tested by

no test coverage detected