Skip to content

Commit 3a1f174

Browse files
committed
fixup: none_of
1 parent 63dae98 commit 3a1f174

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/importproject.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ void ImportProject::parseArgs(FileSettings &fs, const std::vector<std::string> &
137137
// https://github.com/llvm/llvm-project/issues/172018
138138
// NOLINTBEGIN(bugprone-use-after-move)
139139
if (getOptArg("-I") || getOptArg("/I")) {
140-
if (std::find(fs.includePaths.cbegin(), fs.includePaths.cend(), optArg) == fs.includePaths.cend())
140+
if (std::none_of(fs.includePaths.cbegin(), fs.includePaths.cend(),
141+
[&](const std::string &path) { return path == optArg; }))
141142
fs.includePaths.push_back(std::move(optArg));
142143
} else if (getOptArg("-isystem")) {
143144
fs.systemIncludePaths.push_back(std::move(optArg));

0 commit comments

Comments
 (0)