summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2013-05-13 12:56:35 +0000
committerAlexander Kornienko <alexfh@google.com>2013-05-13 12:56:35 +0000
commit9a38ec26588010037656b8ed7838249be9e421c8 (patch)
treebb78d36a9406691e67d23dc1418c89facc3a4398
parentc1d83f472ee1809bdc0216b52dfccfd706d6a5da (diff)
downloadbcm5719-llvm-9a38ec26588010037656b8ed7838249be9e421c8.tar.gz
bcm5719-llvm-9a38ec26588010037656b8ed7838249be9e421c8.zip
A better version of r181699: use raw_string_ostream.str() instead of manually calling .flush().
llvm-svn: 181702
-rw-r--r--clang/lib/Format/Format.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index b8c40cf2633..384c4628bf4 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -204,8 +204,7 @@ std::string configurationAsText(const FormatStyle &Style) {
// reference here.
FormatStyle NonConstStyle = Style;
Output << NonConstStyle;
- Stream.flush();
- return Text;
+ return Stream.str();
}
// Returns the length of everything up to the first possible line break after
OpenPOWER on IntegriCloud