[PATCH] D96363: Mark output as text if it is really text

Jonas Devlieghere via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 11 10:30:42 PST 2021


JDevlieghere accepted this revision.
JDevlieghere added a comment.
This revision is now accepted and ready to land.

LGTM with two inline nits.



================
Comment at: clang/lib/Frontend/Rewrite/FrontendActions.cpp:188
   std::unique_ptr<raw_ostream> OS =
-      CI.createDefaultOutputFile(true, getCurrentFileOrBufferName());
+      CI.createDefaultOutputFile(false, getCurrentFileOrBufferName());
   if (!OS) return;
----------------



================
Comment at: clang/lib/Frontend/Rewrite/FrontendActions.cpp:273
     OutputStream =
-        CI.createDefaultOutputFile(true, getCurrentFileOrBufferName());
+        CI.createDefaultOutputFile(false, getCurrentFileOrBufferName());
     if (!OutputStream)
----------------



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D96363



More information about the cfe-commits mailing list