[TableGen] Use range-based for loop. NFC
authorCraig Topper <craig.topper@gmail.com>
Mon, 8 Jun 2015 01:35:43 +0000 (01:35 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 8 Jun 2015 01:35:43 +0000 (01:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239276 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CTagsEmitter.cpp

index 251a4d1..43915cc 100644 (file)
@@ -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 {