-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[modularize] Use a range-based for loop (NFC) #139398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[modularize] Use a range-based for loop (NFC) #139398
Conversation
@llvm/pr-subscribers-clang-tools-extra Author: Kazu Hirata (kazutakahirata) ChangesFull diff: https://github.com/llvm/llvm-project/pull/139398.diff 1 Files Affected:
diff --git a/clang-tools-extra/modularize/Modularize.cpp b/clang-tools-extra/modularize/Modularize.cpp
index bd180681c9154..8609692945344 100644
--- a/clang-tools-extra/modularize/Modularize.cpp
+++ b/clang-tools-extra/modularize/Modularize.cpp
@@ -357,11 +357,9 @@ getModularizeArgumentsAdjuster(DependencyMap &Dependencies) {
std::string InputFile = findInputFile(Args);
DependentsVector &FileDependents = Dependencies[InputFile];
CommandLineArguments NewArgs(Args);
- if (int Count = FileDependents.size()) {
- for (int Index = 0; Index < Count; ++Index) {
- NewArgs.push_back("-include");
- NewArgs.push_back(FileDependents[Index]);
- }
+ for (const std::string &Dep : FileDependents) {
+ NewArgs.push_back("-include");
+ NewArgs.push_back(Dep);
}
// Ignore warnings. (Insert after "clang_tool" at beginning.)
NewArgs.insert(NewArgs.begin() + 1, "-w");
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/24/builds/8293 Here is the relevant piece of the build log for the reference
|
Sorry, this one caused by my zorg changes. Should be fixed with llvm/llvm-zorg@db7569a |
No description provided.