Skip to content

Commit

Permalink
added clang-format questions
Browse files Browse the repository at this point in the history
  • Loading branch information
madeso committed Jun 6, 2021
1 parent f40e57f commit bdd4e3e
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions docs/questions/clang-format.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# clang format questions

Is there a way to tell clang-format to treat template brackets <> and function () brackets the same as scope {} brackets?
...or in other words, it's outputting

```cpp
table<int>
drunken_bishop(
u64 hash,
int startx,
int starty)
{
return drunken_bishop(
to_codes(to_bytes(hash), msb_first),
starty);
}
```
but I want something similar to
```cpp
table<int>
drunken_bishop
(
u64 hash,
int startx,
int starty
)
{
return drunken_bishop
(
to_codes(to_bytes(hash), msb_first),
starty
);
}
```

0 comments on commit bdd4e3e

Please sign in to comment.