[clang] [Clang] support friend declarations with a dependent nested-name-specifier (PR #191268)

Matheus Izvekov via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 16 09:27:58 PDT 2026


================
@@ -274,6 +275,99 @@ struct AccessTarget : public AccessedEntity {
 
 }
 
+static bool CanDeduceTemplateArguments(Sema &S, TemplateParameterList *TPL,
+                                       ArrayRef<TemplateArgument> PatternArgs,
+                                       ArrayRef<TemplateArgument> Args,
+                                       SourceLocation Loc) {
+  if (PatternArgs.size() != Args.size())
+    return false;
----------------
mizvekov wrote:

That's redundant with the check below

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


More information about the cfe-commits mailing list