[PATCH] D108998: [SystemZ][z/OS] Create html report file with text flag

Fanbo Meng via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 31 07:48:37 PDT 2021


fanbo-meng created this revision.
Herald added a subscriber: martong.
fanbo-meng requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Change OF_None to OF_Text flag in file creation, same reasoning as https://reviews.llvm.org/D97785


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108998

Files:
  clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp


Index: clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
===================================================================
--- clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
+++ clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
@@ -344,7 +344,7 @@
 
   if (std::error_code EC = llvm::sys::fs::openFileForReadWrite(
           ResultPath, FD, llvm::sys::fs::CD_CreateNew,
-          llvm::sys::fs::OF_None)) {
+          llvm::sys::fs::OF_Text)) {
     // Existence of the file corresponds to the situation where a different
     // Clang instance has emitted a bug report with the same issue hash.
     // This is an entirely normal situation that does not deserve a warning,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108998.369698.patch
Type: text/x-patch
Size: 681 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210831/86c547ea/attachment.bin>


More information about the cfe-commits mailing list