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

Method ExtractWithout

Source/cmSearchPath.cxx:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24cmSearchPath::~cmSearchPath() = default;
25
26void cmSearchPath::ExtractWithout(std::set<std::string> const& ignorePaths,
27 std::set<std::string> const& ignorePrefixes,
28 std::vector<std::string>& outPaths) const
29{
30 for (auto const& path : this->Paths) {
31 if (ignorePaths.find(path.Path) == ignorePaths.end() &&
32 ignorePrefixes.find(path.Prefix) == ignorePrefixes.end()) {
33 outPaths.push_back(path.Path);
34 }
35 }
36}
37
38void cmSearchPath::AddPath(std::string const& path)
39{

Callers 1

ComputeFinalPathsMethod · 0.80

Calls 3

push_backMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected