mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
Make clang-format place func names at line start
This commit is contained in:
1 parent
8a6e177701
commit
d73353024c
3 files changed
+212
-197
No files matched your search
@@ -99,6 +99,12 @@ func (g *gen) writeFuncSignature(b *buffer, n *a.Func, cpp uint32) error {
|
||||
return fmt.Errorf("TODO: multiple return values")
|
||||
}
|
||||
|
||||
if cpp != cppInsideStruct {
|
||||
// The empty // comment makes clang-format place the function name at
|
||||
// the start of a line.
|
||||
b.writes("//\n")
|
||||
}
|
||||
|
||||
switch cpp {
|
||||
case cppNone:
|
||||
b.writes(g.funcCName(n))
|
||||
|
||||
Reference in new issue
Block a user