[Lldb-commits] [clang] [lldb] [lldb] Add filter option to AST dump command (PR #142164)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Fri May 30 08:15:43 PDT 2025


================
@@ -8511,8 +8512,16 @@ TypeSystemClang::dump(lldb::opaque_compiler_type_t type) const {
 }
 #endif
 
-void TypeSystemClang::Dump(llvm::raw_ostream &output) {
-  GetTranslationUnitDecl()->dump(output);
+void TypeSystemClang::Dump(llvm::raw_ostream &output,
+                           llvm::StringRef filter_string) {
+  auto consumer =
+      clang::CreateASTDumper(output /*Dump to stdout.*/, filter_string,
----------------
Michael137 wrote:

```suggestion
      clang::CreateASTDumper(output, filter_string,
```


https://github.com/llvm/llvm-project/pull/142164


More information about the lldb-commits mailing list