[PATCH] D65827: [clang-doc] Fix paths of js in import tags
Diego Astiazarán via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 6 14:00:30 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL368087: [clang-doc] Fix paths of js in import tags (authored by DiegoAstiazaran, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D65827?vs=213710&id=213714#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65827/new/
https://reviews.llvm.org/D65827
Files:
clang-tools-extra/trunk/clang-doc/HTMLGenerator.cpp
Index: clang-tools-extra/trunk/clang-doc/HTMLGenerator.cpp
===================================================================
--- clang-tools-extra/trunk/clang-doc/HTMLGenerator.cpp
+++ clang-tools-extra/trunk/clang-doc/HTMLGenerator.cpp
@@ -256,6 +256,8 @@
auto ScriptNode = llvm::make_unique<TagNode>(HTMLTag::TAG_SCRIPT);
SmallString<128> ScriptPath = computeRelativePath("", InfoPath);
llvm::sys::path::append(ScriptPath, llvm::sys::path::filename(FilePath));
+ // Paths in HTML must be in posix-style
+ llvm::sys::path::native(ScriptPath, llvm::sys::path::Style::posix);
ScriptNode->Attributes.try_emplace("src", ScriptPath);
Out.emplace_back(std::move(ScriptNode));
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65827.213714.patch
Type: text/x-patch
Size: 709 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190806/a799894f/attachment.bin>
More information about the cfe-commits
mailing list