File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
llvm/include/llvm/Support Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -539,7 +539,13 @@ ScopedPrinter::printHex<support::ulittle16_t>(StringRef Label,
539539 startLine () << Label << " : " << hex (Value) << " \n " ;
540540}
541541
542- struct DelimitedScope ;
542+ struct DelimitedScope {
543+ DelimitedScope (ScopedPrinter &W) : W(&W) {}
544+ DelimitedScope () : W(nullptr ) {}
545+ virtual ~DelimitedScope () = default ;
546+ virtual void setPrinter (ScopedPrinter &W) = 0;
547+ ScopedPrinter *W;
548+ };
543549
544550class JSONScopedPrinter : public ScopedPrinter {
545551private:
@@ -838,14 +844,6 @@ class JSONScopedPrinter : public ScopedPrinter {
838844 }
839845};
840846
841- struct DelimitedScope {
842- DelimitedScope (ScopedPrinter &W) : W(&W) {}
843- DelimitedScope () : W(nullptr ) {}
844- virtual ~DelimitedScope () = default ;
845- virtual void setPrinter (ScopedPrinter &W) = 0;
846- ScopedPrinter *W;
847- };
848-
849847struct DictScope : DelimitedScope {
850848 explicit DictScope () = default;
851849 explicit DictScope (ScopedPrinter &W) : DelimitedScope(W) { W.objectBegin (); }
You can’t perform that action at this time.
0 commit comments