[llvm] Add thread-local overrides for `llvm::errs()` and `llvm::outs()`. (PR #90374)

via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 27 22:01:42 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 7037878d2b4afbda436ec61008ac907bd782bdd8 848c557c2cfc0b9b5b33df57f0f8378ab95c8942 -- llvm/include/llvm/Support/raw_ostream.h llvm/lib/Support/raw_ostream.cpp llvm/unittests/Support/raw_fd_stream_test.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp
index 1f8ac00cbe..19aae8f55b 100644
--- a/llvm/lib/Support/raw_ostream.cpp
+++ b/llvm/lib/Support/raw_ostream.cpp
@@ -900,7 +900,7 @@ raw_fd_ostream &llvm::outs() {
   if (auto *TLSOuts = OutsOverride; TLSOuts != nullptr) {
     return *TLSOuts;
   }
-  
+
   // Set buffer settings to model stdout behavior.
   std::error_code EC;
 #ifdef __MVS__

``````````

</details>


https://github.com/llvm/llvm-project/pull/90374


More information about the llvm-commits mailing list