add clang-format configuration file for the unittest tree

This commit is contained in:
Axel Kohlmeyer 2020-06-13 01:51:16 -04:00
parent d84b4a3fff
commit 4d62ea98cf
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 22 additions and 0 deletions

22
unittest/.clang-format Normal file
View File

@ -0,0 +1,22 @@
---
Language: Cpp
BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignEscapedNewlines: Left
AllowShortFunctionsOnASingleLine: Inline
AllowShortLambdasOnASingleLine: None
AllowShortIfStatementsOnASingleLine: WithoutElse
BraceWrapping:
AfterFunction: true
BreakBeforeBraces: Custom
BreakInheritanceList: AfterColon
BreakConstructorInitializers: AfterColon
ColumnLimit: 100
IndentCaseLabels: true
IndentWidth: 4
ObjCBlockIndentWidth: 4
PenaltyBreakAssignment: 4
Standard: Cpp11
TabWidth: 4
UseTab: Never
...