================
Comment at: lib/Frontend/PrintPreprocessedOutput.cpp:67
@@ -66,4 +66,3 @@
   SmallString<128> SpellingBuffer;
-  for (MacroInfo::tokens_iterator I = MI.tokens_begin(), E = MI.tokens_end();
-       I != E; ++I) {
-    if (I->hasLeadingSpace())
+  for (auto T : MI.tokens()) {
+    if (T.hasLeadingSpace())
----------------
Sorry for not being more explicit, I meant that you should replace just the 
`clang::Token` with `auto`. This now *always* makes a copy. `const auto &` is 
the right thing to use here.

http://reviews.llvm.org/D9079

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/



_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to