[all-commits] [llvm/llvm-project] 51ca62: [clang] Improve ast-dumper text printing of Templa...
Matheus Izvekov via All-commits
all-commits at lists.llvm.org
Sun May 26 16:46:28 PDT 2024
Branch: refs/heads/users/mizvekov/clang-improve-ast-dumper-template-arguments
Home: https://github.com/llvm/llvm-project
Commit: 51ca62950c19648895f1947bbf981408193d9002
https://github.com/llvm/llvm-project/commit/51ca62950c19648895f1947bbf981408193d9002
Author: Matheus Izvekov <mizvekov at gmail.com>
Date: 2024-05-26 (Sun, 26 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
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