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

Method ignorePaths

lib/importproject.cpp:189–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void ImportProject::ignorePaths(const std::vector<std::string> &ipaths, bool debug)
190{
191 PathMatch matcher(ipaths, Path::getCurrentPath());
192 for (auto it = fileSettings.cbegin(); it != fileSettings.cend();) {
193 if (matcher.match(it->filename())) {
194 if (debug)
195 std::cout << "ignored path: " << it->filename() << std::endl;
196 it = fileSettings.erase(it);
197 }
198 else
199 ++it;
200 }
201}
202
203void ImportProject::ignoreOtherConfigs(const std::string &cfg)
204{

Callers 2

parseFromArgsMethod · 0.45
doAnalyzeProjectMethod · 0.45

Calls 2

matchMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected