Skip to content

Commit

Permalink
Force imgui.h order in .clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
piernov committed Jul 21, 2017
1 parent 69a6ca4 commit cd960de
Showing 1 changed file with 42 additions and 40 deletions.
82 changes: 42 additions & 40 deletions .clang-format
@@ -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

0 comments on commit cd960de

Please sign in to comment.