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

Method applyExcludeList

gui/filelist.cpp:120–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120QStringList FileList::applyExcludeList() const
121{
122 const PathMatch pathMatch(toStdStringList(mExcludedPaths), QDir::currentPath().toStdString());
123
124 QStringList paths;
125 for (const QFileInfo& item : mFileList) {
126 if (pathMatch.match(QDir::fromNativeSeparators(item.filePath()).toStdString()))
127 continue;
128 QString canonical = QDir::fromNativeSeparators(item.canonicalFilePath());
129 if (!pathMatch.match(canonical.toStdString()))
130 paths << canonical;
131 }
132 return paths;
133}

Callers

nothing calls this directly

Calls 2

toStdStringListFunction · 0.85
matchMethod · 0.45

Tested by

no test coverage detected