@@ -536,11 +536,8 @@ void InterfaceGenerator::forwardDeclareInterface(const Interface &interface) {
536536
537537 // Emit a forward declaration of the interface class so that it becomes usable
538538 // in the signature of its methods.
539- std::string comments = tblgen::emitSummaryAndDescComments (
540- " " , interface.getDescription ().value_or (" " ));
541- if (!comments.empty ()) {
542- os << comments << " \n " ;
543- }
539+ tblgen::emitSummaryAndDescComments (os, " " ,
540+ interface.getDescription ().value_or (" " ));
544541
545542 StringRef interfaceName = interface.getName ();
546543 os << " class " << interfaceName << " ;\n " ;
@@ -560,11 +557,8 @@ void InterfaceGenerator::emitInterfaceDecl(const Interface &interface) {
560557
561558 // Emit a forward declaration of the interface class so that it becomes usable
562559 // in the signature of its methods.
563- std::string comments = tblgen::emitSummaryAndDescComments (
564- " " , interface.getDescription ().value_or (" " ));
565- if (!comments.empty ()) {
566- os << comments << " \n " ;
567- }
560+ tblgen::emitSummaryAndDescComments (os, " " ,
561+ interface.getDescription ().value_or (" " ));
568562
569563 // Emit the traits struct containing the concept and model declarations.
570564 os << " namespace detail {\n "
0 commit comments