Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
8203a14
)
THRIFT-1815 Code generators line buffer output - Go compiler
author
Jens Geyer
<jensg@apache.org>
Sat, 2 Nov 2013 18:05:40 +0000
(20:05 +0200)
committer
Jens Geyer
<jensg@apache.org>
Sat, 2 Nov 2013 18:05:40 +0000
(20:05 +0200)
Patch: Jens Geyer
compiler/cpp/src/generate/t_go_generator.cc
patch
|
blob
|
history
diff --git
a/compiler/cpp/src/generate/t_go_generator.cc
b/compiler/cpp/src/generate/t_go_generator.cc
index
0d7e6c2
..
ad64956
100644
(file)
--- a/
compiler/cpp/src/generate/t_go_generator.cc
+++ b/
compiler/cpp/src/generate/t_go_generator.cc
@@
-41,6
+41,8
@@
using namespace std;
+static const string endl = "\n"; // avoid ostream << std::endl flushes
+
/**
* A helper for automatically formatting the emitted Go code from the Thrift
* IDL per the Go style guide.