================
@@ -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;
+
+ if (!Comment.Text.empty())
+ Parts.push_back(StringRef(Comment.Text).str());
----------------
evelez7 wrote:
You should be able to implicitly convert the `SmallString` instead of doing
this as a stringref.
https://llvm.org/doxygen/classllvm_1_1SmallString.html#ab9d50c6284d5976200ef42a076d3fb02
https://github.com/llvm/llvm-project/pull/183754
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits