[clang] [Clang][Sema] Diagnose friend declarations with enum elaborated-type-specifier in all language modes (PR #80171)

via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 1 09:57:38 PST 2024


================
@@ -17534,79 +17534,6 @@ Decl *Sema::BuildStaticAssertDeclaration(SourceLocation StaticAssertLoc,
   return Decl;
 }
 
-/// Perform semantic analysis of the given friend type declaration.
-///
-/// \returns A friend declaration that.
-FriendDecl *Sema::CheckFriendTypeDecl(SourceLocation LocStart,
----------------
cor3ntin wrote:

Why remove the function? 
I think it might be cleaner to add additional parameters to it ( ie, the template arguments)

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


More information about the cfe-commits mailing list