[all-commits] [llvm/llvm-project] 661dda: [clang] Add frontend flag to enable support for br...
Yitzhak Mandelbaum via All-commits
all-commits at lists.llvm.org
Tue Aug 13 11:03:56 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 661dda9df13c65ce021407bb726b558c7a414731
https://github.com/llvm/llvm-project/commit/661dda9df13c65ce021407bb726b558c7a414731
Author: Yitzhak Mandelbaum <ymand at users.noreply.github.com>
Date: 2024-08-13 (Tue, 13 Aug 2024)
Changed paths:
M clang/include/clang/Basic/LangOptions.def
M clang/include/clang/Driver/Options.td
M clang/lib/Sema/SemaTemplate.cpp
A clang/test/AST/ast-dump-retain-subst-template-type-parm-type-ast-nodes.cpp
Log Message:
-----------
[clang] Add frontend flag to enable support for broken external resugarers (#103219)
Forked from https://github.com/llvm/llvm-project/pull/102510 by
[mizvekov](https://github.com/mizvekov). Changes are captured as a fixup
commit.
There are some external projects that can't rely on our own sugar
propagation for templated entities, because they need to resugar types
which only exist within their framework, and so are entirely invisible
to our internal tooling.
This new flag is meant to prevent our transforms from removing any
Subst*
nodes.
For this, this is wired only to template type alias subsititutions.
Note that our AST does represent enough information to correctly
resugar template type alias, so any users of this are limited in their
capacity to reconstruct the parameter substitutions fully.
---------
Co-authored-by: Matheus Izvekov <mizvekov at gmail.com>
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