[clang] [lldb] [clang] Add -ast-dump-filter-path to filter AST dump by file path (PR #194266)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed May 6 06:07:32 PDT 2026
================
@@ -8700,6 +8700,13 @@ def ast_dump_filter : Separate<["-"], "ast-dump-filter">,
MarshallingInfoString<FrontendOpts<"ASTDumpFilter">>;
def ast_dump_filter_EQ : Joined<["-"], "ast-dump-filter=">,
Alias<ast_dump_filter>;
+def ast_dump_filter_path : Separate<["-"], "ast-dump-filter-path">,
+ MetaVarName<"<path_filter>">,
+ HelpText<"Use with -ast-dump or -ast-print to dump/print only AST declaration"
----------------
AaronBallman wrote:
```suggestion
HelpText<"Use with '-ast-dump' or '-ast-print' to dump/print only AST declaration"
```
https://github.com/llvm/llvm-project/pull/194266
More information about the cfe-commits
mailing list