[Lldb-commits] [PATCH] D35506: Fix after r308190.

Adrian McCarthy via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 17 14:09:18 PDT 2017


amccarth created this revision.

Update some LLDB code after clang::MacroInfo::arg_iterator was
reandmed to param_iterator.


https://reviews.llvm.org/D35506

Files:
  lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp


Index: lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
===================================================================
--- lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
+++ lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
@@ -451,16 +451,16 @@
 
           bool first_arg = true;
 
-          for (clang::MacroInfo::arg_iterator ai = macro_info->arg_begin(),
-                                              ae = macro_info->arg_end();
-               ai != ae; ++ai) {
+          for (clang::MacroInfo::param_iterator pi = macro_info->param_begin(),
+                                                pe = macro_info->param_end();
+               pi != pe; ++pi) {
             if (!first_arg) {
               macro_expansion.append(", ");
             } else {
               first_arg = false;
             }
 
-            macro_expansion.append((*ai)->getName().str());
+            macro_expansion.append((*pi)->getName().str());
           }
 
           if (macro_info->isC99Varargs()) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35506.106950.patch
Type: text/x-patch
Size: 1064 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170717/00d701b4/attachment.bin>


More information about the lldb-commits mailing list