Skip to content

Commit 6317760

Browse files
ArndArnd
Arnd
authored and
Arnd
committed
clang-format corrections
1 parent 5af27a5 commit 6317760

File tree

6 files changed

+830
-384
lines changed

6 files changed

+830
-384
lines changed

.clang-format

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
################################################################################
2+
## Google formatting file. Auto-generated from "LLVM" Style and then modified ##
3+
## ##
4+
## Date Developer Description ##
5+
## ========== ========== =====================================================##
6+
## 2020-07-05 SV-Zanshin Removed unknown options ##
7+
## 2020-06-28 SV-Zanshin Changed indentation ##
8+
## ##
9+
################################################################################
10+
---
11+
Language: Cpp
12+
AccessModifierOffset: -1
13+
AlignAfterOpenBracket: Align
14+
##AlignConsecutiveMacros: true
15+
AlignConsecutiveAssignments: true
16+
AlignConsecutiveDeclarations: true
17+
AlignEscapedNewlines: Left
18+
AlignOperands: true
19+
AlignTrailingComments: true
20+
AllowAllParametersOfDeclarationOnNextLine: true
21+
AllowShortBlocksOnASingleLine: false
22+
AllowShortCaseLabelsOnASingleLine: false
23+
AllowShortFunctionsOnASingleLine: All
24+
#AllowShortLambdasOnASingleLine: All
25+
AllowShortIfStatementsOnASingleLine: true
26+
AllowShortLoopsOnASingleLine: true
27+
AlwaysBreakAfterDefinitionReturnType: None
28+
AlwaysBreakAfterReturnType: None
29+
AlwaysBreakBeforeMultilineStrings: true
30+
AlwaysBreakTemplateDeclarations: true
31+
BinPackArguments: true
32+
BinPackParameters: true
33+
BraceWrapping:
34+
AfterClass: false
35+
AfterControlStatement: false
36+
AfterEnum: false
37+
AfterFunction: false
38+
AfterNamespace: false
39+
AfterObjCDeclaration: false
40+
AfterStruct: false
41+
AfterUnion: false
42+
AfterExternBlock: false
43+
BeforeCatch: false
44+
BeforeElse: false
45+
IndentBraces: false
46+
SplitEmptyFunction: true
47+
SplitEmptyRecord: true
48+
SplitEmptyNamespace: true
49+
BreakBeforeBinaryOperators: None
50+
BreakBeforeBraces: Attach
51+
BreakBeforeInheritanceComma: false
52+
BreakInheritanceList: BeforeColon
53+
BreakBeforeTernaryOperators: true
54+
BreakConstructorInitializersBeforeComma: false
55+
BreakConstructorInitializers: BeforeColon
56+
BreakAfterJavaFieldAnnotations: false
57+
BreakStringLiterals: true
58+
ColumnLimit: 100
59+
CommentPragmas: '^ IWYU pragma:'
60+
CompactNamespaces: false
61+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
62+
ConstructorInitializerIndentWidth: 4
63+
ContinuationIndentWidth: 4
64+
Cpp11BracedListStyle: true
65+
DerivePointerAlignment: true
66+
DisableFormat: false
67+
ExperimentalAutoDetectBinPacking: false
68+
FixNamespaceComments: true
69+
ForEachMacros:
70+
- foreach
71+
- Q_FOREACH
72+
- BOOST_FOREACH
73+
IncludeBlocks: Regroup
74+
IncludeCategories:
75+
- Regex: '^<ext/.*\.h>'
76+
Priority: 2
77+
- Regex: '^<.*\.h>'
78+
Priority: 1
79+
- Regex: '^<.*'
80+
Priority: 2
81+
- Regex: '.*'
82+
Priority: 3
83+
IncludeIsMainRegex: '([-_](test|unittest))?$'
84+
IndentCaseLabels: true
85+
IndentPPDirectives: None
86+
IndentWidth: 2
87+
IndentWrappedFunctionNames: false
88+
JavaScriptQuotes: Leave
89+
JavaScriptWrapImports: true
90+
KeepEmptyLinesAtTheStartOfBlocks: false
91+
MacroBlockBegin: ''
92+
MacroBlockEnd: ''
93+
MaxEmptyLinesToKeep: 1
94+
NamespaceIndentation: None
95+
ObjCBinPackProtocolList: Never
96+
ObjCBlockIndentWidth: 2
97+
ObjCSpaceAfterProperty: false
98+
ObjCSpaceBeforeProtocolList: true
99+
PenaltyBreakAssignment: 2
100+
PenaltyBreakBeforeFirstCallParameter: 1
101+
PenaltyBreakComment: 300
102+
PenaltyBreakFirstLessLess: 120
103+
PenaltyBreakString: 1000
104+
PenaltyBreakTemplateDeclaration: 10
105+
PenaltyExcessCharacter: 1000000
106+
PenaltyReturnTypeOnItsOwnLine: 200
107+
PointerAlignment: Left
108+
RawStringFormats:
109+
- Language: Cpp
110+
Delimiters:
111+
- cc
112+
- CC
113+
- cpp
114+
- Cpp
115+
- CPP
116+
- 'c++'
117+
- 'C++'
118+
CanonicalDelimiter: ''
119+
BasedOnStyle: google
120+
- Language: TextProto
121+
Delimiters:
122+
- pb
123+
- PB
124+
- proto
125+
- PROTO
126+
EnclosingFunctions:
127+
- EqualsProto
128+
- EquivToProto
129+
- PARSE_PARTIAL_TEXT_PROTO
130+
- PARSE_TEST_PROTO
131+
- PARSE_TEXT_PROTO
132+
- ParseTextOrDie
133+
- ParseTextProtoOrDie
134+
CanonicalDelimiter: ''
135+
BasedOnStyle: google
136+
ReflowComments: true
137+
SortIncludes: true
138+
SortUsingDeclarations: true
139+
SpaceAfterCStyleCast: false
140+
SpaceAfterTemplateKeyword: true
141+
SpaceBeforeAssignmentOperators: true
142+
SpaceBeforeCpp11BracedList: false
143+
SpaceBeforeCtorInitializerColon: true
144+
SpaceBeforeInheritanceColon: true
145+
SpaceBeforeParens: ControlStatements
146+
SpaceBeforeRangeBasedForLoopColon: true
147+
SpaceInEmptyParentheses: false
148+
SpacesBeforeTrailingComments: 2
149+
SpacesInAngles: false
150+
SpacesInContainerLiterals: true
151+
SpacesInCStyleCastParentheses: false
152+
SpacesInParentheses: false
153+
SpacesInSquareBrackets: false
154+
TabWidth: 8
155+
UseTab: Never

.github/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Fujitsu MB85nnn FRAM memories<br>(https://zanduino.github.io/Badges/GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) [![Build](https://github.com/Zanduino/MB85_FRAM/workflows/Build/badge.svg)](https://github.com/Zanduino/MB85_FRAM/actions?query=workflow%3ABuild) [![Format](https://github.com/Zanduino/MB85_FRAM/workflows/Format/badge.svg)](https://github.com/Zanduino/MB85_FRAM/actions?query=workflow%3AFormat) [![Wiki](https://zanduino.github.io/Badges/Documentation-Badge.svg)](https://github.com/Zanduino/MB85_FRAM/wiki) [![Doxygen](https://github.com/Zanduino/MB85_FRAM/workflows/Doxygen/badge.svg)](https://Zanduino.github.io/MB85_FRAM/html/index.html) [![arduino-library-badge](https://www.ardu-badge.com/badge/MB85_FRAM.svg?)](https://www.ardu-badge.com/MB85_FRAM)
1+
# Fujitsu MB85nnn FRAM memories<br>[](https://zanduino.github.io/Badges/GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) [![Build](https://github.com/Zanduino/MB85_FRAM/workflows/Build/badge.svg)](https://github.com/Zanduino/MB85_FRAM/actions?query=workflow%3ABuild) [![Format](https://github.com/Zanduino/MB85_FRAM/workflows/Format/badge.svg)](https://github.com/Zanduino/MB85_FRAM/actions?query=workflow%3AFormat) [![Wiki](https://zanduino.github.io/Badges/Documentation-Badge.svg)](https://github.com/Zanduino/MB85_FRAM/wiki) [![Doxygen](https://github.com/Zanduino/MB85_FRAM/workflows/Doxygen/badge.svg)](https://Zanduino.github.io/MB85_FRAM/html/index.html) [![arduino-library-badge](https://www.ardu-badge.com/badge/MB85_FRAM.svg?)](https://www.ardu-badge.com/MB85_FRAM)
22
<img src="https://github.com/Zanduino/MB85_FRAM/blob/master/Images/MB85Breakout.jpg" width="175" align="right"/> *Arduino* library which defines methods for accessing most of the Fujitsu MB85nnn family FRAM memories. The library allows efficient reading from and writing to [Fujitsu FRAM](http://www.fujitsu.com/global/products/devices/semiconductor/memory/fram/overview/features/index.html) memories using I2C and allowing use of objects such as arrays or structures in addition to writing single bytes at a time. The FRAM memory has several advantages over conventional SRAM in that it allows at least 10 trillion read/write cycles which means that the programmer doesn't have to worry about heavy use of FRAM for changing data. The FRAM is 5V tolerant and there is an [Adafruit breakout](https://www.adafruit.com/product/1895) available.
33
Up to 8 devices can be put on an I2C and the library allows several memories to be treated as one large contiguous memory. The following memories are supported:
44

0 commit comments

Comments
 (0)