]> granicus.if.org Git - clang/commitdiff
Fixes [Bug 15960] YAMLTraits doesn't roundtrip on Windows.
authorAlexander Kornienko <alexfh@google.com>
Mon, 13 May 2013 12:41:08 +0000 (12:41 +0000)
committerAlexander Kornienko <alexfh@google.com>
Mon, 13 May 2013 12:41:08 +0000 (12:41 +0000)
Thanks to Kim Gräsman for help!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181699 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index 2f2f095780dc0847a05153e58087c5feb075f9a0..a62fa379ab1f8f925b6961b920d8a3db4aa456d7 100644 (file)
@@ -191,6 +191,7 @@ std::string configurationAsText(const FormatStyle &Style) {
   // reference here.
   FormatStyle NonConstStyle = Style;
   Output << NonConstStyle;
+  Stream.flush();
   return Text;
 }