Files
Texture/.clang-format
Michael Schneider 502256b98b Add clang-format for a common source code format (#1365)
* Add clang-format

* Update format to be as close as our current style
2019-03-16 16:37:46 -07:00

54 lines
1.3 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
BasedOnStyle: Google
## Indentation
ColumnLimit: 120
IndentWidth: 2
## Line Break
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: true
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: false
## ObjC
ObjCBinPackProtocolList: Always
ObjCSpaceAfterProperty: false
## Comments
AlignTrailingComments: true
## Arguments / Parameters
# If false, a function call’s or function definition’s arguments will either
# all be on the same line or will have one line each.
BinPackArguments: false
# If false, a function call’s or function definition’s parameters will either
# all be on the same line or will have one line each.
BinPackParameters: false
# Allow putting all parameters of a function declaration onto the next line even
# if BinPackParameters is false.
# For example this should be ok:
# someFunction(foo,
# bar,
# baz);
AllowAllParametersOfDeclarationOnNextLine: true
## Single Line
AllowShortBlocksOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false