[clang-tools-extra] [Clang-doc] Display values and comments in MD (PR #183754)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 3 11:02:32 PST 2026
================
@@ -67,6 +67,30 @@ static void writeSourceFileRef(const ClangDocContext &CDCtx, const Location &L,
OS << "\n\n";
}
+static std::string genRawText(const std::vector<CommentInfo> &Comments) {
+ std::string Result;
+ llvm::raw_string_ostream OS(Result);
+ std::queue<const CommentInfo *> Q;
+ for (const auto &CI : Comments)
+ Q.push(&CI);
----------------
ilovepi wrote:
Can't you initialize this directly? Or does that not work since you need pointers?
https://github.com/llvm/llvm-project/pull/183754
More information about the cfe-commits
mailing list