Skip to content

Commit f62173a

Browse files
authored
Merge pull request #145 from open-ephys-plugins/issue-143
Add clang-format file
2 parents f67439a + d4a0451 commit f62173a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+12958
-13081
lines changed

.clang-format

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Note: Uses clang-format v17
2+
---
3+
Language: Cpp
4+
# BasedOnStyle: JUCE (Custom)
5+
AccessModifierOffset: -4
6+
AlignAfterOpenBracket: Align
7+
AlignArrayOfStructures: Right
8+
AlignConsecutiveAssignments: false
9+
AlignConsecutiveDeclarations: false
10+
AlignEscapedNewlines: Left
11+
AlignOperands: Align
12+
AlignTrailingComments: false
13+
AllowAllParametersOfDeclarationOnNextLine: false
14+
AllowShortBlocksOnASingleLine: Never
15+
AllowShortCaseLabelsOnASingleLine: false
16+
AllowShortFunctionsOnASingleLine: All
17+
AllowShortIfStatementsOnASingleLine: Never
18+
AllowShortLoopsOnASingleLine: false
19+
AlwaysBreakAfterDefinitionReturnType: None
20+
AlwaysBreakAfterReturnType: None
21+
AlwaysBreakBeforeMultilineStrings: false
22+
AlwaysBreakTemplateDeclarations: Yes
23+
BinPackArguments: false
24+
BinPackParameters: false
25+
BreakBeforeBinaryOperators: NonAssignment
26+
BreakBeforeBraces: Allman
27+
BreakBeforeTernaryOperators: true
28+
BreakConstructorInitializers: BeforeColon
29+
BreakInheritanceList : BeforeColon
30+
BreakStringLiterals: false
31+
ColumnLimit: 0
32+
ConstructorInitializerIndentWidth: 4
33+
ContinuationIndentWidth: 4
34+
Cpp11BracedListStyle: false
35+
DerivePointerAlignment: false
36+
DisableFormat: false
37+
IndentCaseLabels: true
38+
IndentWidth: 4
39+
IndentWrappedFunctionNames: true
40+
KeepEmptyLinesAtEOF: true
41+
KeepEmptyLinesAtTheStartOfBlocks: false
42+
MaxEmptyLinesToKeep: 1
43+
NamespaceIndentation: Inner
44+
PackConstructorInitializers: CurrentLine
45+
PointerAlignment: Left
46+
ReflowComments: true
47+
SortIncludes: true
48+
SpaceAfterCStyleCast: true
49+
SpaceAfterLogicalNot: true
50+
SpaceBeforeAssignmentOperators: true
51+
SpaceBeforeCpp11BracedList: true
52+
SpaceBeforeInheritanceColon: true
53+
SpaceBeforeParens: NonEmptyParentheses
54+
SpaceInEmptyParentheses: false
55+
SpacesInAngles: Never
56+
SpacesInParens: Never
57+
SpacesInContainerLiterals: true
58+
Standard: "c++17"
59+
TabWidth: 4
60+
UseTab: Never

0 commit comments

Comments
 (0)