Skip to content

Commit

Permalink
Modifiy formatting rules
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
stweil committed Apr 2, 2019
1 parent 3e7144e commit e262d71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
---
BasedOnStyle: Google
# Only merge empty functions.
AllowShortFunctionsOnASingleLine: Empty
# Do not allow short if statements.
AllowShortIfStatementsOnASingleLine: false
# Enforce always the same pointer alignment.
DerivePointerAlignment: false
IndentPPDirectives: AfterHash

0 comments on commit e262d71

Please sign in to comment.