r181702 - A better version of r181699: use raw_string_ostream.str() instead of manually calling .flush().
Alexander Kornienko
alexfh at google.com
Mon May 13 05:56:35 PDT 2013
Author: alexfh
Date: Mon May 13 07:56:35 2013
New Revision: 181702
URL: http://llvm.org/viewvc/llvm-project?rev=181702&view=rev
Log:
A better version of r181699: use raw_string_ostream.str() instead of manually calling .flush().
Modified:
cfe/trunk/lib/Format/Format.cpp
Modified: cfe/trunk/lib/Format/Format.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/Format.cpp?rev=181702&r1=181701&r2=181702&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Mon May 13 07:56:35 2013
@@ -204,8 +204,7 @@ std::string configurationAsText(const Fo
// 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
More information about the cfe-commits
mailing list