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

Erick Velez via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 5 15:49:36 PST 2026


================
@@ -67,6 +68,49 @@ static void writeSourceFileRef(const ClangDocContext &CDCtx, const Location &L,
   OS << "\n\n";
 }
 
+static std::string extractCommentText(const CommentInfo &Comment) {
+  std::vector<std::string> Parts;
----------------
evelez7 wrote:

We should be reserving some space for this vector before pushing to it, like the size of Comment's children + if it has some text itself.

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


More information about the cfe-commits mailing list