[llvm] Support: Add proxies for raw_ostream and raw_pwrite_stream (PR #113362)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 3 14:06:05 PST 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 e57548387000071562f44bfd66644480c8e6542d 41d0f375d36657abfa0ab085131b53adbe4fbcc5 --extensions cpp,h -- llvm/include/llvm/Support/raw_ostream_proxy.h llvm/lib/Support/raw_ostream_proxy.cpp llvm/unittests/Support/raw_ostream_proxy_test.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/Support/raw_ostream_proxy_test.cpp b/llvm/unittests/Support/raw_ostream_proxy_test.cpp
index f3f0277bac..785736ddd8 100644
--- a/llvm/unittests/Support/raw_ostream_proxy_test.cpp
+++ b/llvm/unittests/Support/raw_ostream_proxy_test.cpp
@@ -171,7 +171,9 @@ TEST(raw_ostream_proxyTest, ColorMode) {
raw_ostream_proxy ProxyOS(DestOS);
ProxyOS.enable_colors(true);
- WithColor(ProxyOS, raw_ostream::Colors::RED, /*Bold=*/true, /*BG=*/false, ColorMode::Disable) << "test";
+ WithColor(ProxyOS, raw_ostream::Colors::RED, /*Bold=*/true, /*BG=*/false,
+ ColorMode::Disable)
+ << "test";
EXPECT_EQ("", Dest);
ProxyOS.flush();
EXPECT_EQ("test", Dest);
@@ -184,7 +186,9 @@ TEST(raw_ostream_proxyTest, ColorMode) {
raw_ostream_proxy ProxyOS(DestOS);
ProxyOS.enable_colors(true);
- WithColor(ProxyOS, raw_ostream::Colors::RED, /*Bold=*/true, /*BG=*/false, ColorMode::Auto) << "test";
+ WithColor(ProxyOS, raw_ostream::Colors::RED, /*Bold=*/true, /*BG=*/false,
+ ColorMode::Auto)
+ << "test";
EXPECT_EQ("", Dest);
ProxyOS.flush();
EXPECT_EQ("\x1B[0;1;31mtest\x1B[0m", Dest);
@@ -197,7 +201,9 @@ TEST(raw_ostream_proxyTest, ColorMode) {
raw_ostream_proxy ProxyOS(DestOS);
ProxyOS.enable_colors(true);
- WithColor(ProxyOS, raw_ostream::Colors::RED, /*Bold=*/true, /*BG=*/false, ColorMode::Enable) << "test";
+ WithColor(ProxyOS, raw_ostream::Colors::RED, /*Bold=*/true, /*BG=*/false,
+ ColorMode::Enable)
+ << "test";
EXPECT_EQ("", Dest);
ProxyOS.flush();
EXPECT_EQ("\x1B[0;1;31mtest\x1B[0m", Dest);
``````````
</details>
https://github.com/llvm/llvm-project/pull/113362
More information about the llvm-commits
mailing list