File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -492,15 +492,13 @@ genReferencesBlock(const std::vector<Reference> &References,
492492}
493493static std::unique_ptr<TagNode>
494494writeFileDefinition (const ClangDocContext &CDCtx, const Location &L) {
495- std::string RepositoryUrl = CDCtx.RepositoryUrl .value_or (" " );
496- std::string RepositoryLinePrefix = CDCtx.RepositoryLinePrefix .value_or (" " );
497495
498- if (!L.IsFileInRootDir && RepositoryUrl. empty () )
496+ if (!L.IsFileInRootDir && !CDCtx. RepositoryUrl )
499497 return std::make_unique<TagNode>(
500498 HTMLTag::TAG_P, " Defined at line " + std::to_string (L.LineNumber ) +
501499 " of file " + L.Filename );
502500
503- SmallString<128 > FileURL (RepositoryUrl);
501+ SmallString<128 > FileURL (CDCtx. RepositoryUrl . value_or ( " " ) );
504502 llvm::sys::path::append (
505503 FileURL, llvm::sys::path::Style::posix,
506504 // If we're on Windows, the file name will be in the wrong format, and
You can’t perform that action at this time.
0 commit comments