[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
Fri Oct 2 06:27:50 PDT 2026


================
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -ast-dump -ast-dump-filter-path "*ast-dump-filter-path-include.c" %s | FileCheck %s
+
+#include "filter-header.h"
+
+MAKE_VAR(z)
+
+// CHECK: VarDecl {{.*}} z
----------------
AaronBallman wrote:

Please add a newline to the end of the file.

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


More information about the cfe-commits mailing list