[clang] Clang AST updates for more details (PR #152372)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 7 10:37:08 PDT 2025


================
@@ -48,8 +48,8 @@ struct S {
   virtual void f(float, int = 12);
   // CHECK: CXXMethodDecl 0x{{[^ ]*}} <line:[[@LINE-1]]:3, col:33> col:16 f 'void (float, int)' virtual
   // CHECK-NEXT: ParmVarDecl 0x{{[^ ]*}} <col:18> col:23 'float'
-  // CHECK-NEXT: ParmVarDecl 0x{{[^ ]*}} <col:25, col:31> col:29 'int' cinit
-  // CHECK-NEXT: IntegerLiteral 0x{{[^ ]*}} <col:31> 'int' 12
+  // CHECK: ParmVarDecl 0x{{[^ ]*}} <col:25, col:31> col:29 'int' cinit
----------------
AaronBallman wrote:

We're prefer to keep the CHECK-NEXT lines whenever possible because otherwise the test failures become harder to reason about when someone breaks the functionality (it also makes it easier to hide test failures).

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


More information about the cfe-commits mailing list