[clang] [clang] disallow narrowing when matching template template parameters (PR #124313)

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 24 13:01:08 PST 2025


================
@@ -11682,6 +11683,7 @@ class Sema final : public SemaBase {
                         SmallVectorImpl<TemplateArgument> &SugaredConverted,
                         SmallVectorImpl<TemplateArgument> &CanonicalConverted,
                         CheckTemplateArgumentKind CTAK, bool PartialOrdering,
+                        bool PartialOrderingTTP,
----------------
mizvekov wrote:

We can turn the two bools into enums, and we can group parameters which often go together into an 'Info' like thing. Grouping ortogonal bools into one enum like that will create friction in that we will often want to combine and split them apart anyway.

https://github.com/llvm/llvm-project/pull/124313


More information about the cfe-commits mailing list