[Lldb-commits] [PATCH] D54072: Add a command to dump a module's clang ast.

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sun Nov 4 02:23:44 PST 2018


labath added inline comments.


================
Comment at: lldb/source/Commands/CommandObjectTarget.cpp:2275
+        SymbolFile *sf = m->GetSymbolVendor()->GetSymbolFile();
+        sf->DumpClangAST();
+      }
----------------
The dump function should take the output stream from the `result` object, so the output ends up where it's expected to go. (`clang::DeclBase::dump` has an overload which takes a `raw_ostream`, and lldb streams have a `raw_ostream` accessor now).


https://reviews.llvm.org/D54072





More information about the lldb-commits mailing list