Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: tools/clang/rewrite_scoped_array/RewriteScopedArray.cpp

Issue 13904002: Remove C++11 usage from Clang tools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/clang/empty_string/EmptyStringConverter.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/rewrite_scoped_array/RewriteScopedArray.cpp
diff --git a/tools/clang/rewrite_scoped_array/RewriteScopedArray.cpp b/tools/clang/rewrite_scoped_array/RewriteScopedArray.cpp
index f465411b21c481dffacb3db8065425c2886429d6..a09d5358ede67b1018f91d6639b748192526aa39 100644
--- a/tools/clang/rewrite_scoped_array/RewriteScopedArray.cpp
+++ b/tools/clang/rewrite_scoped_array/RewriteScopedArray.cpp
@@ -85,9 +85,10 @@ int main(int argc, const char* argv[]) {
// Serialization format is documented in tools/clang/scripts/run_tool.py
llvm::outs() << "==== BEGIN EDITS ====\n";
- for (const Replacement& r : replacements) {
- llvm::outs() << "r:" << r.getFilePath() << ":" << r.getOffset() << ":"
- << r.getLength() << ":" << r.getReplacementText() << "\n";
+ for (Replacements::const_iterator it = replacements.begin();
+ it != replacements.end(); ++it) {
+ llvm::outs() << "r:" << it->getFilePath() << ":" << it->getOffset() << ":"
+ << it->getLength() << ":" << it->getReplacementText() << "\n";
}
llvm::outs() << "==== END EDITS ====\n";
« no previous file with comments | « tools/clang/empty_string/EmptyStringConverter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698