forked from bartvdbraak/blender
0dd9a4a576
Is based on Google style which was used in the Libmv project before, but is now consistently applied for the sources of the library itself and to C-API. With some time C-API will likely be removed, and it makes it easier to make it follow Libmv style, hence the diversion from Blender's style. There are quite some exceptions (clang-format off) in the code around Eigen matrix initialization. It is rather annoying, and there could be some neat way to make initialization readable without such exception. Could be some places where loss of readability in matrix initialization got lost as the change is quite big. If this has happened it is easier to address readability once actually working on the code. This change allowed to spot some missing header guards, so that's nice. Doing it in bundled version, as the upstream library needs to have some of the recent development ported over from bundle to upstream. There should be no functional changes.
35 lines
733 B
YAML
35 lines
733 B
YAML
BasedOnStyle: Google
|
|
|
|
ColumnLimit: 80
|
|
|
|
Standard: Cpp11
|
|
|
|
# Indent nested preprocessor.
|
|
# #ifdef Foo
|
|
# # include <nested>
|
|
# #endif
|
|
IndentPPDirectives: AfterHash
|
|
|
|
# For the cases when namespace is closing with a wrong comment
|
|
FixNamespaceComments: true
|
|
|
|
AllowShortFunctionsOnASingleLine: InlineOnly
|
|
AllowShortBlocksOnASingleLine: false
|
|
AllowShortIfStatementsOnASingleLine: false
|
|
AllowShortLoopsOnASingleLine: false
|
|
AllowShortCaseLabelsOnASingleLine: true
|
|
|
|
# No bin packing, every argument is on its own line.
|
|
BinPackArguments: false
|
|
BinPackParameters: false
|
|
|
|
# Ensure pointer alignment.
|
|
# ObjectType* object;
|
|
PointerAlignment: Left
|
|
DerivePointerAlignment: false
|
|
|
|
AlignEscapedNewlines: Right
|
|
|
|
IncludeBlocks: Preserve
|
|
SortIncludes: true
|