forked from qt-creator/qt-creator
Utils: Wrap various file system iteration flags and filters
... into a single class. This makes passing them around as a whole easier, and opens a path to have "generic" filters in form of a lambda or such. Change-Id: Ibf644b2fedcf0f1a35258030710afff8f5873f88 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -780,7 +780,7 @@ void DebuggerItemManagerPrivate::autoDetectGdbOrLldbDebuggers(const FilePaths &s
|
||||
|
||||
const auto addSuspect = [&suspects](const FilePath &entry) { suspects.append(entry); return true; };
|
||||
for (const FilePath &path : paths)
|
||||
path.iterateDirectory(addSuspect, filters, QDir::Files | QDir::Executable);
|
||||
path.iterateDirectory(addSuspect, {filters, QDir::Files | QDir::Executable});
|
||||
|
||||
QStringList logMessages{tr("Searching debuggers...")};
|
||||
for (const FilePath &command : qAsConst(suspects)) {
|
||||
|
||||
Reference in New Issue
Block a user