mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +01:00
Tweak cgen+dumbindent output
This commit is contained in:
1 parent
d5d4da0ab6
commit
d0dec081a6
5 files changed
+784
-631
No files matched your search
@@ -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(" ")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user