Skip to content

Commit e262d71

Browse files
committed
Modifiy formatting rules
* Allow a single line for empty functions only. * Don't allow if statements on a single line. This improves readability and helps when debugging. Signed-off-by: Stefan Weil <[email protected]>
1 parent 3e7144e commit e262d71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.clang-format

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
22
BasedOnStyle: Google
3+
# Only merge empty functions.
4+
AllowShortFunctionsOnASingleLine: Empty
5+
# Do not allow short if statements.
6+
AllowShortIfStatementsOnASingleLine: false
37
# Enforce always the same pointer alignment.
48
DerivePointerAlignment: false
59
IndentPPDirectives: AfterHash

0 commit comments

Comments
 (0)