[Lldb-commits] [lldb] r308219 - Fixing LLDB build after refactoring of clang's MacroInfo
Eugene Zemtsov via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 17 13:50:22 PDT 2017
Author: eugene
Date: Mon Jul 17 13:50:21 2017
New Revision: 308219
URL: http://llvm.org/viewvc/llvm-project?rev=308219&view=rev
Log:
Fixing LLDB build after refactoring of clang's MacroInfo
Modified:
lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
Modified: lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp?rev=308219&r1=308218&r2=308219&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp (original)
+++ lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp Mon Jul 17 13:50:21 2017
@@ -451,16 +451,16 @@ void ClangModulesDeclVendorImpl::ForEach
bool first_arg = true;
- for (clang::MacroInfo::arg_iterator ai = macro_info->arg_begin(),
- ae = macro_info->arg_end();
- ai != ae; ++ai) {
+ for (auto 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()) {
More information about the lldb-commits
mailing list