[clang-tools-extra] [clang-doc] [feat] add --repository-line-prefix argument (PR #131280)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 22 13:28:45 PDT 2025
================
@@ -749,13 +752,8 @@ genHTML(const EnumInfo &I, const ClangDocContext &CDCtx) {
Out.emplace_back(std::move(Table));
- if (I.DefLoc) {
- if (!CDCtx.RepositoryUrl)
- Out.emplace_back(writeFileDefinition(*I.DefLoc));
- else
- Out.emplace_back(
- writeFileDefinition(*I.DefLoc, StringRef{*CDCtx.RepositoryUrl}));
- }
+ if (I.DefLoc)
+ Out.emplace_back(writeFileDefinition(CDCtx, *I.DefLoc));
----------------
ilovepi wrote:
yes, all the places where we're doing this should use the same helper.
https://github.com/llvm/llvm-project/pull/131280
More information about the cfe-commits
mailing list