[clang-tools-extra] [clang-doc] Serialize repository URL in Mustache templates (PR #174914)
Erick Velez via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 8 20:55:14 PST 2026
================
@@ -84,7 +84,7 @@ serializeLocation(const Location &Loc,
return LocationObj;
SmallString<128> FileURL(*RepositoryUrl);
sys::path::append(FileURL, sys::path::Style::posix, Loc.Filename);
- FileURL += "#" + std::to_string(Loc.StartLineNumber);
+ FileURL += "#L" + std::to_string(Loc.StartLineNumber);
----------------
evelez7 wrote:
I added this, but the method of passing around an optional in `JSONGenerator` seems to be reaching its limit. It seems like it would make more sense to create a class with all of these static functions as methods that can access a `ClangDocContext` as a field. Thoughts?
https://github.com/llvm/llvm-project/pull/174914
More information about the cfe-commits
mailing list