================
@@ -68,11 +68,27 @@ static void writeSourceFileRef(const ClangDocContext
&CDCtx, const Location &L,
OS << "\n\n";
}
-struct CommentState {
+/// Writer for writing comments to a table cell in MD.
+///
+/// The writer traverses the comments recursively and outputs the
+/// comments into a stream.
+/// The formatter inserts single/double line breaks to retain the comment
+/// structure.
+///
+/// Usage :
+/// Initialize an object with a llvm::raw_ostream to output into.
+/// Call the write(C) function with an array of Comments 'C'.
+class MDCommentWriter {
----------------
evelez7 wrote:
I think just a rename for this should be fine. Should probably just be called
`TableCommentWriter`.
https://github.com/llvm/llvm-project/pull/183754
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits