@@ -536,11 +536,8 @@ void InterfaceGenerator::forwardDeclareInterface(const Interface &interface) {
536
536
537
537
// Emit a forward declaration of the interface class so that it becomes usable
538
538
// 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 (" " ));
544
541
545
542
StringRef interfaceName = interface.getName ();
546
543
os << " class " << interfaceName << " ;\n " ;
@@ -560,11 +557,8 @@ void InterfaceGenerator::emitInterfaceDecl(const Interface &interface) {
560
557
561
558
// Emit a forward declaration of the interface class so that it becomes usable
562
559
// 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 (" " ));
568
562
569
563
// Emit the traits struct containing the concept and model declarations.
570
564
os << " namespace detail {\n "
0 commit comments