forked from OpenBoardView/OpenBoardView
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force imgui.h order in .clang-format
- Loading branch information
Showing
1 changed file
with
42 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,42 @@ | ||
# .clang-format (YAML) | ||
|
||
BasedOnStyle: LLVM | ||
|
||
# Indentation | ||
IndentWidth: 4 | ||
TabWidth: 4 | ||
UseTab: ForIndentation | ||
|
||
# Used for line wrapping and defining a "short" statement | ||
ColumnLimit: 132 | ||
|
||
# Allow short statements on one line | ||
AllowShortFunctionsOnASingleLine: Empty | ||
AllowShortIfStatementsOnASingleLine: true | ||
AllowShortLoopsOnASingleLine: true | ||
AllowShortCaseLabelsOnASingleLine: true | ||
|
||
# Sensible alignments | ||
AlignConsecutiveAssignments: true | ||
AlignOperands: true | ||
AlignEscapedNewlinesLeft: true | ||
AlignAfterOpenBracket: Align | ||
BinPackArguments: false # Break after each arg if they won't fit on one line | ||
BinPackParameters: false | ||
|
||
# Line breaks | ||
BreakBeforeBraces: Attach | ||
BreakConstructorInitializersBeforeComma: true | ||
AlwaysBreakTemplateDeclarations: true | ||
AlwaysBreakBeforeMultilineStrings: true | ||
|
||
# Misc | ||
PointerBindsToType: false | ||
IndentCaseLabels: true | ||
|
||
# Includes ordering | ||
IncludeCategories: | ||
- Regex: '^"platform.h"$' # Keep platform.h first | ||
Priority: -1 | ||
# .clang-format (YAML) | ||
|
||
BasedOnStyle: LLVM | ||
|
||
# Indentation | ||
IndentWidth: 4 | ||
TabWidth: 4 | ||
UseTab: ForIndentation | ||
|
||
# Used for line wrapping and defining a "short" statement | ||
ColumnLimit: 132 | ||
|
||
# Allow short statements on one line | ||
AllowShortFunctionsOnASingleLine: Empty | ||
AllowShortIfStatementsOnASingleLine: true | ||
AllowShortLoopsOnASingleLine: true | ||
AllowShortCaseLabelsOnASingleLine: true | ||
|
||
# Sensible alignments | ||
AlignConsecutiveAssignments: true | ||
AlignOperands: true | ||
AlignEscapedNewlinesLeft: true | ||
AlignAfterOpenBracket: Align | ||
BinPackArguments: false # Break after each arg if they won't fit on one line | ||
BinPackParameters: false | ||
|
||
# Line breaks | ||
BreakBeforeBraces: Attach | ||
BreakConstructorInitializersBeforeComma: true | ||
AlwaysBreakTemplateDeclarations: true | ||
AlwaysBreakBeforeMultilineStrings: true | ||
|
||
# Misc | ||
PointerBindsToType: false | ||
IndentCaseLabels: true | ||
|
||
# Includes ordering | ||
IncludeCategories: | ||
- Regex: '^"platform.h"$' # Keep platform.h first | ||
Priority: -2 | ||
- Regex: '^"imgui.h"$' # Keep platform.h first | ||
Priority: -1 |