================ @@ -494,18 +494,31 @@ genReferencesBlock(const std::vector<Reference> &References, static std::unique_ptr<TagNode> writeFileDefinition(const Location &L, std::optional<StringRef> RepositoryUrl = std::nullopt) { - if (!L.IsFileInRootDir || !RepositoryUrl) + if (!L.IsFileInRootDir && !RepositoryUrl) return std::make_unique<TagNode>( HTMLTag::TAG_P, "Defined at line " + std::to_string(L.LineNumber) + " of file " + L.Filename); SmallString<128> FileURL(*RepositoryUrl); - llvm::sys::path::append(FileURL, llvm::sys::path::Style::posix, L.Filename); + llvm::sys::path::append( + FileURL, llvm::sys::path::Style::posix, + // If we're on windows, the file name will be in the wrong format, and ---------------- ilovepi wrote:
Done. https://github.com/llvm/llvm-project/pull/122566 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits