[llvm] r239276 - [TableGen] Use range-based for loop. NFC
Craig Topper
craig.topper at gmail.com
Sun Jun 7 18:35:43 PDT 2015
Author: ctopper
Date: Sun Jun 7 20:35:43 2015
New Revision: 239276
URL: http://llvm.org/viewvc/llvm-project?rev=239276&view=rev
Log:
[TableGen] Use range-based for loop. NFC
Modified:
llvm/trunk/utils/TableGen/CTagsEmitter.cpp
Modified: llvm/trunk/utils/TableGen/CTagsEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CTagsEmitter.cpp?rev=239276&r1=239275&r2=239276&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CTagsEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/CTagsEmitter.cpp Sun Jun 7 20:35:43 2015
@@ -80,9 +80,8 @@ void CTagsEmitter::run(raw_ostream &OS)
std::sort(Tags.begin(), Tags.end());
OS << "!_TAG_FILE_FORMAT\t1\t/original ctags format/\n";
OS << "!_TAG_FILE_SORTED\t1\t/0=unsorted, 1=sorted, 2=foldcase/\n";
- for (std::vector<Tag>::const_iterator I = Tags.begin(), E = Tags.end();
- I != E; ++I)
- I->emit(OS);
+ for (const Tag &T : Tags)
+ T.emit(OS);
}
namespace llvm {
More information about the llvm-commits
mailing list