[all-commits] [llvm/llvm-project] a3e5a1: [clang] improve print / dump of anonymous declarat...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Tue Jan 28 15:47:02 PST 2025


  Branch: refs/heads/users/mizvekov/clang-dump-print-anonymous-declarations
  Home:   https://github.com/llvm/llvm-project
  Commit: a3e5a15c010210b22bf9408e770531117dad04ca
      https://github.com/llvm/llvm-project/commit/a3e5a15c010210b22bf9408e770531117dad04ca
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2025-01-28 (Tue, 28 Jan 2025)

  Changed paths:
    M clang/lib/AST/StmtPrinter.cpp
    M clang/lib/AST/TextNodeDumper.cpp
    M clang/test/AST/HLSL/StructuredBuffers-AST.hlsl
    M clang/test/AST/HLSL/TypedBuffers-AST.hlsl
    M clang/test/AST/ast-dump-decl.c
    M clang/test/AST/ast-dump-records.c
    M clang/test/AST/ast-dump-records.cpp
    M clang/test/AST/attr-counted-by-late-parsed-struct-ptrs.c
    M clang/test/AST/attr-counted-by-or-null-late-parsed-struct-ptrs.c
    M clang/test/AST/attr-counted-by-or-null-struct-ptrs.c
    M clang/test/AST/attr-counted-by-struct-ptrs.c
    M clang/test/AST/attr-sized-by-late-parsed-struct-ptrs.c
    M clang/test/AST/attr-sized-by-or-null-late-parsed-struct-ptrs.c
    M clang/test/AST/attr-sized-by-or-null-struct-ptrs.c
    M clang/test/AST/attr-sized-by-struct-ptrs.c
    M clang/test/Import/cxx-anon-namespace/test.cpp
    M clang/test/Modules/odr_hash.cpp
    M clang/test/SemaTemplate/aggregate-deduction-candidate.cpp
    M clang/test/SemaTemplate/deduction-crash.cpp
    M clang/test/SemaTemplate/deduction-guide.cpp

  Log Message:
  -----------
  [clang] improve print / dump of anonymous declarations

ast-print: A DeclRef to an anonymous NTTP will print
'value-parameter-<Depth>-<Index>', similar to how we print type
parameters.

ast-dump: A bareDeclRef to an anonymous entity will print some extra
identifying information, instead of an empty name, like indexes.
Falls back to source locations if nothing else is available.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list