]> granicus.if.org Git - clang/commitdiff
A better version of r181699: use raw_string_ostream.str() instead of manually calling...
authorAlexander Kornienko <alexfh@google.com>
Mon, 13 May 2013 12:56:35 +0000 (12:56 +0000)
committerAlexander Kornienko <alexfh@google.com>
Mon, 13 May 2013 12:56:35 +0000 (12:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181702 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index b8c40cf2633c2089117903ed388df60cbe37d7ef..384c4628bf4d55d0661453497dcfeba471a2a054 100644 (file)
@@ -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