Tweak cgen+dumbindent output

This commit is contained in:
Nigel Tao committed 2020-06-05 10:22:14 +10:00
1 parent d5d4da0ab6
commit d0dec081a6
5 files changed
+784 -631

No files matched your search

+2 -4
View File
@@ -111,13 +111,11 @@ func (g *gen) writeFuncSignature(b *buffer, n *a.Func, wfs uint32) error {
return err
}
// The empty // comment makes clang-format place the function name at the
// start of a line.
switch wfs {
case wfsCDecl:
b.writes(" //\n")
b.writes("\n")
case wfsCppDecl:
b.writes(" //\n ")
b.writes("\n ")
case wfsCFuncPtrField:
b.writes(" ")
}