-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
And a Makefile target to format uncommitted code. Unfortunately clang-format seems to be too strict with indenting, and I does not work well with C99 designated initializers. I want to start to use it manually for new code and see if that is useful or not.
- Loading branch information
1 parent
18ac7bf
commit d0aebcd
Showing
2 changed files
with
44 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Style for goxel. | ||
# Still a work in progress. | ||
|
||
BasedOnStyle: LLVM | ||
|
||
AllowShortFunctionsOnASingleLine: Empty | ||
AllowShortIfStatementsOnASingleLine: WithoutElse | ||
|
||
ColumnLimit: 80 | ||
PenaltyExcessCharacter: 1000 | ||
|
||
# Never use tabs for indentation. | ||
UseTab: Never | ||
TabWidth: 4 | ||
IndentWidth: 4 | ||
|
||
ContinuationIndentWidth: 8 | ||
BracedInitializerIndentWidth: 4 | ||
|
||
BreakBeforeBraces: Linux | ||
|
||
BinPackParameters: false | ||
AllowAllArgumentsOnNextLine: true | ||
|
||
SortIncludes: true | ||
|
||
PenaltyReturnTypeOnItsOwnLine: 10000 | ||
PenaltyBreakAssignment: 100 | ||
PenaltyIndentedWhitespace: 2 | ||
|
||
ForEachMacros: | ||
- DL_FOREACH | ||
- DL_FOREACH_SAFE |
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