diff options
author | Orestis Floros <orestisflo@gmail.com> | 2024-01-27 11:37:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-27 11:37:05 +0100 |
commit | f1696245608945eadc25105cf3fe41717551d968 (patch) | |
tree | eb60e46a32c72d2aad1891e74424ac27376bdc58 /.clang-format | |
parent | 5fdfb145306a84ffb3dd6c89869c58826b5e3401 (diff) | |
download | i3-f1696245608945eadc25105cf3fe41717551d968.tar.gz i3-f1696245608945eadc25105cf3fe41717551d968.zip |
clang-format: enable InsertBraces (#5882)
Enforces a rule that we have followed for years now. Yes, the diff is
quite big but we get it over with once and we prevent having to nit-pick
future PRs.
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/.clang-format b/.clang-format index 4a15e88e..97f3e47a 100644 --- a/.clang-format +++ b/.clang-format @@ -1,13 +1,14 @@ -BasedOnStyle: google +AllowShortBlocksOnASingleLine: false +AllowShortFunctionsOnASingleLine: None AllowShortIfStatementsOnASingleLine: false AllowShortLoopsOnASingleLine: false -AllowShortFunctionsOnASingleLine: None -AllowShortBlocksOnASingleLine: false AlwaysBreakBeforeMultilineStrings: false +BasedOnStyle: google +ColumnLimit: 0 +ForEachMacros: [ TAILQ_FOREACH, TAILQ_FOREACH_REVERSE, SLIST_FOREACH, CIRCLEQ_FOREACH, CIRCLEQ_FOREACH_REVERSE, NODES_FOREACH, NODES_FOREACH_REVERSE, FOREACH_NONINTERNAL] IndentWidth: 4 +InsertBraces: true PointerBindsToType: false -ColumnLimit: 0 -SpaceBeforeParens: ControlStatements SortIncludes: false -ForEachMacros: [ TAILQ_FOREACH, TAILQ_FOREACH_REVERSE, SLIST_FOREACH, CIRCLEQ_FOREACH, CIRCLEQ_FOREACH_REVERSE, NODES_FOREACH, NODES_FOREACH_REVERSE, FOREACH_NONINTERNAL] +SpaceBeforeParens: ControlStatements TypenameMacros: [ SLIST_HEAD, SLIST_ENTRY, LIST_HEAD, LIST_ENTRY, SIMPLEQ_HEAD, SIMPLEQ_ENTRY, TAILQ_HEAD, TAILQ_ENTRY, CIRCLEQ_HEAD, CIRCLEQ_ENTRY ] |