Move C++ method impls inside struct definitions

This commit is contained in:
Nigel Tao committed 2018-10-06 10:06:07 +10:00
1 parent 5b82dd905a
commit 26a448450e
3 files changed
+133 -264

No files matched your search

+3 -5
View File
@@ -95,11 +95,9 @@ func (g *gen) writeFuncSignature(b *buffer, n *a.Func, cpp uint32) error {
return err
}
if cpp != cppInsideStruct {
// The empty // comment makes clang-format place the function name at
// the start of a line.
b.writes("//\n")
}
// The empty // comment makes clang-format place the function name at the
// start of a line.
b.writes("//\n")
switch cpp {
case cppNone: