[all-commits] [llvm/llvm-project] 1a2f33: [clang] Improve ast-dumper text printing of Templa...
Matheus Izvekov via All-commits
all-commits at lists.llvm.org
Wed May 29 11:24:05 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1a2f3309765fdc143fdc3809211fb85d2e2ca341
https://github.com/llvm/llvm-project/commit/1a2f3309765fdc143fdc3809211fb85d2e2ca341
Author: Matheus Izvekov <mizvekov at gmail.com>
Date: 2024-05-29 (Wed, 29 May 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/AST/TextNodeDumper.h
M clang/lib/AST/TextNodeDumper.cpp
M clang/test/AST/ast-dump-decl.cpp
M clang/test/AST/ast-dump-openmp-begin-declare-variant_template_2.cpp
A clang/test/AST/ast-dump-template-name.cpp
M clang/test/AST/ast-dump-using-template.cpp
M clang/test/AST/constraints-explicit-instantiation.cpp
M clang/test/OpenMP/align_clause_ast_print.cpp
M clang/test/OpenMP/generic_loop_ast_print.cpp
M clang/test/OpenMP/interop_ast_print.cpp
M clang/test/SemaOpenACC/sub-array-ast.cpp
M clang/test/SemaTemplate/aggregate-deduction-candidate.cpp
M clang/test/SemaTemplate/attributes.cpp
M clang/test/SemaTemplate/deduction-guide.cpp
M clang/test/SemaTemplate/make_integer_seq.cpp
M clang/test/SemaTemplate/type_pack_element.cpp
Log Message:
-----------
[clang] Improve ast-dumper text printing of TemplateArgument (#93431)
This improves and unifies our approach to printing all template
arguments.
The same approach to printing types is extended to all
TemplateArguments: A sugared version is printed in quotes, followed by
printing the canonical form, unless they would print the same.
Special improvements are done to add more detail to template template
arguments.
It's planned in a future patch to use this improved TemplateName printer
for other places besides TemplateArguments.
Note: The sugared/desugared printing does not show up for TemplateNames
in tests yet, because we do a poor job of preserving their type sugar.
This will be improved in a future patch.
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