[clang-tools-extra] [Clang-doc] Display values and comments in MD (PR #183754)

Samrudh Nelli via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 7 04:56:20 PST 2026


================
@@ -67,6 +70,46 @@ static void writeSourceFileRef(const ClangDocContext &CDCtx, const Location &L,
   OS << "\n\n";
 }
 
+static void extractCommentText(const CommentInfo &Comment,
+                               llvm::raw_ostream &OS) {
+
+  OS << Comment.Text;
+  bool FirstChild = true;
+
+  for (size_t Idx = 0, End = Comment.Children.size(); Idx < End; ++Idx) {
+    const auto &Child = Comment.Children[Idx];
+    llvm::SmallString<128> ChildBuffer;
+    llvm::raw_svector_ostream ChildOS(ChildBuffer);
----------------
SamrudhNelli wrote:

Oh, thanks for the insight.

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


More information about the cfe-commits mailing list