================
@@ -18069,6 +18069,34 @@ Decl
*Sema::BuildStaticAssertDeclaration(SourceLocation StaticAssertLoc,
return Decl;
}
+bool Sema::CheckDependentFriend(SourceLocation Loc, NestedNameSpecifier NNS,
+ TemplateParameterList *FPL) {
+ if (!NNS || !FPL || FPL->size() == 0)
+ return false;
+
+ if (NNS.isDependent()) {
----------------
mizvekov wrote:
Nit: Maybe just throw !NNS.isDependent() into the if above, flattening this
function? That can replace the `!NNS` check.
https://github.com/llvm/llvm-project/pull/191268
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits