MCPcopy Create free account
hub / github.com/Kitware/CMake / IsFileInDir

Function IsFileInDir

Source/CTest/cmCTestCoverageHandler.cxx:608–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606#endif
607
608static bool IsFileInDir(std::string const& infile, std::string const& indir)
609{
610 std::string file = cmSystemTools::CollapseFullPath(infile);
611 std::string dir = cmSystemTools::CollapseFullPath(indir);
612
613 return file.size() > dir.size() && fnc_prefix(file, dir) &&
614 file[dir.size()] == '/';
615}
616
617int cmCTestCoverageHandler::HandlePHPCoverage(
618 cmCTestCoverageHandlerContainer* cont)

Callers 1

HandleGCovCoverageMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…