Skip to content

Commit e63d43b

Browse files
Lint: Include OpenKNX .clang-format
1 parent 0db5c8c commit e63d43b

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.clang-format

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#Generated from Visual Studio settings
2+
---
3+
BasedOnStyle: llvm
4+
BreakBeforeBraces: Custom
5+
BraceWrapping:
6+
AfterClass: true
7+
AfterControlStatement: true
8+
AfterCaseLabel: true
9+
AfterEnum: true
10+
AfterFunction: true
11+
AfterNamespace: true
12+
AfterStruct: true
13+
AfterUnion: true
14+
AfterExternBlock: true
15+
BeforeCatch: true
16+
BeforeElse: true
17+
BeforeWhile: true
18+
BeforeLambdaBody: false
19+
SplitEmptyFunction: true
20+
SplitEmptyRecord: true
21+
SplitEmptyNamespace: true
22+
IndentBraces: false
23+
ColumnLimit: 0
24+
IndentWidth: 4
25+
NamespaceIndentation: All
26+
TabWidth: 4
27+
DerivePointerAlignment: true
28+
IndentCaseLabels: true
29+
AllowShortCaseLabelsOnASingleLine: true
30+
AllowShortEnumsOnASingleLine: true
31+
AllowShortFunctionsOnASingleLine: All
32+
AllowShortIfStatementsOnASingleLine: OnlyFirstIf
33+
AllowShortLambdasOnASingleLine: All
34+
ConstructorInitializerIndentWidth: 4
35+
ContinuationIndentWidth: 4
36+
UseTab: Never
37+
IndentPPDirectives: BeforeHash
38+
...

src/DfaOutput.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ struct DfaTimeout
4141
};
4242

4343
// TODO check inheritance from Base?
44-
class DfaOutput {
44+
class DfaOutput
45+
{
4546
private:
4647
// same as in Base; required for Param-Macros
4748
uint8_t _channelIndex = 0;

0 commit comments

Comments
 (0)