We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d151ad6 commit e0dfc49Copy full SHA for e0dfc49
clang-tools-extra/modularize/Modularize.cpp
@@ -357,11 +357,9 @@ getModularizeArgumentsAdjuster(DependencyMap &Dependencies) {
357
std::string InputFile = findInputFile(Args);
358
DependentsVector &FileDependents = Dependencies[InputFile];
359
CommandLineArguments NewArgs(Args);
360
- if (int Count = FileDependents.size()) {
361
- for (int Index = 0; Index < Count; ++Index) {
362
- NewArgs.push_back("-include");
363
- NewArgs.push_back(FileDependents[Index]);
364
- }
+ for (const std::string &Dep : FileDependents) {
+ NewArgs.push_back("-include");
+ NewArgs.push_back(Dep);
365
}
366
// Ignore warnings. (Insert after "clang_tool" at beginning.)
367
NewArgs.insert(NewArgs.begin() + 1, "-w");
0 commit comments