projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1d83f4
)
A better version of r181699: use raw_string_ostream.str() instead of manually calling...
author
Alexander Kornienko
<alexfh@google.com>
Mon, 13 May 2013 12:56:35 +0000
(12:56 +0000)
committer
Alexander Kornienko
<alexfh@google.com>
Mon, 13 May 2013 12:56:35 +0000
(12:56 +0000)
llvm-svn: 181702
clang/lib/Format/Format.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Format/Format.cpp
b/clang/lib/Format/Format.cpp
index
b8c40cf
..
384c462
100644
(file)
--- 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