aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Frontend
diff options
context:
space:
mode:
authorJOE1994 <joseph942010@gmail.com>2024-09-14 04:37:40 -0400
committerJOE1994 <joseph942010@gmail.com>2024-09-14 04:38:50 -0400
commit918972bded27de6a2bfacc15b4ad3edebd81f405 (patch)
treed9c2211912499a55c3843e384120dc4b96028e2e /clang/unittests/Frontend
parent1d2f7277e695d046efaf2818dd1a4b251ce745fd (diff)
downloadllvm-918972bded27de6a2bfacc15b4ad3edebd81f405.zip
llvm-918972bded27de6a2bfacc15b4ad3edebd81f405.tar.gz
llvm-918972bded27de6a2bfacc15b4ad3edebd81f405.tar.bz2
[clang] Strip unneeded calls to raw_string_ostream::str() (NFC)
Avoid extra layer of indirection. p.s. Also, remove calls to raw_string_ostream::flush(), which are no-ops.
Diffstat (limited to 'clang/unittests/Frontend')
-rw-r--r--clang/unittests/Frontend/OutputStreamTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/Frontend/OutputStreamTest.cpp b/clang/unittests/Frontend/OutputStreamTest.cpp
index 7d360f6..2618558 100644
--- a/clang/unittests/Frontend/OutputStreamTest.cpp
+++ b/clang/unittests/Frontend/OutputStreamTest.cpp
@@ -67,7 +67,7 @@ TEST(FrontendOutputTests, TestVerboseOutputStreamShared) {
bool Success = ExecuteCompilerInvocation(&Compiler);
EXPECT_FALSE(Success);
- EXPECT_TRUE(!VerboseStream.str().empty());
+ EXPECT_TRUE(!VerboseBuffer.empty());
EXPECT_TRUE(StringRef(VerboseBuffer.data()).contains("errors generated"));
}