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

Method FindMumpsFile

Source/CTest/cmParseMumpsCoverage.cxx:125–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125bool cmParseMumpsCoverage::FindMumpsFile(std::string const& routine,
126 std::string& filepath)
127{
128 auto i = this->RoutineToDirectory.find(routine);
129 if (i != this->RoutineToDirectory.end()) {
130 filepath = i->second;
131 return true;
132 }
133 // try some alternate names
134 char const* tryname[] = { "GUX", "GTM", "ONT", nullptr };
135 for (int k = 0; tryname[k] != nullptr; k++) {
136 std::string routine2 = routine + tryname[k];
137 i = this->RoutineToDirectory.find(routine2);
138 if (i != this->RoutineToDirectory.end()) {
139 filepath = i->second;
140 return true;
141 }
142 }
143 return false;
144}

Callers 2

ReadMCovFileMethod · 0.80
ReadCMCovFileMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected