diff options
| author | Diego Astiazaran <diegoaat97@gmail.com> | 2019-07-26 18:02:42 +0000 |
|---|---|---|
| committer | Diego Astiazaran <diegoaat97@gmail.com> | 2019-07-26 18:02:42 +0000 |
| commit | d6cdd98a25b85a4c14a79542f5b832b21fc5592a (patch) | |
| tree | 1a7599f373b05269f1fa23fa8774409485b50d17 /clang-tools-extra/clang-doc | |
| parent | 51dcb292cc002ad6ec88d7d929a96407c0685066 (diff) | |
| download | bcm5719-llvm-d6cdd98a25b85a4c14a79542f5b832b21fc5592a.tar.gz bcm5719-llvm-d6cdd98a25b85a4c14a79542f5b832b21fc5592a.zip | |
[clang-format] Fix style of css file paths
CSS files included in HTML should have a path in posix style, it should
not be different for Windows.
Differential Revision: https://reviews.llvm.org/D65309
llvm-svn: 367137
Diffstat (limited to 'clang-tools-extra/clang-doc')
| -rw-r--r-- | clang-tools-extra/clang-doc/HTMLGenerator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-doc/HTMLGenerator.cpp b/clang-tools-extra/clang-doc/HTMLGenerator.cpp index 56ed9769a18..50660ffa268 100644 --- a/clang-tools-extra/clang-doc/HTMLGenerator.cpp +++ b/clang-tools-extra/clang-doc/HTMLGenerator.cpp @@ -231,6 +231,8 @@ genStylesheetsHTML(StringRef InfoPath, const ClangDocContext &CDCtx) { SmallString<128> StylesheetPath = computeRelativePath("", InfoPath); llvm::sys::path::append(StylesheetPath, llvm::sys::path::filename(FilePath)); + // Paths in HTML must be in posix-style + llvm::sys::path::native(StylesheetPath, llvm::sys::path::Style::posix); LinkNode->Attributes.try_emplace("href", StylesheetPath); Out.emplace_back(std::move(LinkNode)); } |

