[clang] Clang AST updates for more details (PR #152372)
Nicholas Reimer via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 13 13:30:58 PDT 2025
================
@@ -6,17 +6,17 @@ struct B {};
typedef void (type1)() noexcept(10 > 5);
// CHECK: TypedefDecl {{.*}} type1 'void () noexcept(10 > 5)'
-// CHECK-NEXT: `-ParenType {{.*}}
-// CHECK-NEXT: `-FunctionProtoType {{.*}} 'void () noexcept(10 > 5)' exceptionspec_noexcept_true cdecl
+// CHECK-NEXT: `-typeDetails: ParenType {{.*}}
+// CHECK-NEXT: `-typeDetails: FunctionProtoType {{.*}} 'void () noexcept(10 > 5)' exceptionspec_noexcept_true cdecl
// CHECK-NEXT: |-NoexceptExpr: ConstantExpr {{.*}} 'bool'
// CHECK-NEXT: | `-value: Int 1
-// CHECK-NEXT: `-BuiltinType {{.*}} 'void'
+// CHECK: `-functionDetails: cdeclReturnType {{.*}} 'void'
----------------
sei-nreimer wrote:
We tried to leave the text dumps alone as much as possible. Unfortunately, to get some of the additional information that we needed, we had to update ASTNodeTraverser. Those changes mean that TextNodeDumper now receives the additional information as well.
https://github.com/llvm/llvm-project/pull/152372
More information about the cfe-commits
mailing list