[PATCH] D64539: [clang-doc] Add stylesheet to generated html docs

Julie Hockett via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 10 15:42:26 PDT 2019


juliehockett added inline comments.


================
Comment at: clang-tools-extra/clang-doc/tool/ClangDocMain.cpp:246-271
+    auto StylesheetPathWrite = getInfoOutputFile(
+        OutDirectory, "", "clang-doc-default-stylesheet", ".css");
+    if (!StylesheetPathWrite) {
+      llvm::errs() << toString(StylesheetPathWrite.takeError()) << "\n";
+      return 1;
+    }
+    std::error_code FileErr;
----------------
Could you use  `llvm::sys::fs::copy_file` here? https://llvm.org/doxygen/namespacellvm_1_1sys_1_1fs.html#abe768b38d21bfc2bc91a1c1d09cd84de


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64539/new/

https://reviews.llvm.org/D64539





More information about the cfe-commits mailing list