Skip to content

Commit 4fb1d36

Browse files
committed
Add clang-tidy suppressions
1 parent 58b0676 commit 4fb1d36

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/importproject.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ void ImportProject::parseArgs(FileSettings &fs, const std::vector<std::string> &
134134
};
135135

136136
for (; argPtr != args.cend(); argPtr++) {
137+
// https://github.com/llvm/llvm-project/issues/172018
138+
// NOLINTBEGIN(bugprone-use-after-move)
137139
if (getOptArg("-I") || getOptArg("/I")) {
138140
if (std::find(fs.includePaths.cbegin(), fs.includePaths.cend(), optArg) == fs.includePaths.cend())
139141
fs.includePaths.push_back(std::move(optArg));
@@ -161,6 +163,7 @@ void ImportProject::parseArgs(FileSettings &fs, const std::vector<std::string> &
161163

162164
if (argPtr == args.cend())
163165
break;
166+
// NOLINTEND(bugprone-use-after-move)
164167
}
165168

166169
fsSetDefines(fs, std::move(defs));

0 commit comments

Comments
 (0)