Skip to content

Commit 50a8305

Browse files
committed
apply clang-tidy
1 parent c750504 commit 50a8305

File tree

5 files changed

+400
-345
lines changed

5 files changed

+400
-345
lines changed

.clang-format

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BasedOnStyle: LLVM
22
IndentWidth: 4
3-
ColumnLimit: 100
3+
ColumnLimit: 140
44
TabWidth: 4
55
UseTab: Never
66
BreakBeforeBraces: Allman
@@ -11,4 +11,7 @@ SpaceBeforeParens: ControlStatements
1111
SortIncludes: true
1212
IncludeBlocks: Regroup
1313
ReflowComments: true
14-
Standard: Cpp23
14+
ContinuationIndentWidth: 4
15+
BinPackParameters: false
16+
BinPackArguments: false
17+

.clang-tidy

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
Checks: >
22
-*,
3-
bugprone-* ,
4-
performance-* ,
53
readability-* ,
64
modernize-* ,
7-
cppcoreguidelines-* ,
8-
portability-* ,
9-
misc-unused-* ,
10-
hicpp-* ,
11-
clang-analyzer-* ,
12-
-modernize-use-trailing-return-type
5+
-modernize-use-trailing-return-type,
6+
-readability-magic-numbers,
137
148
WarningsAsErrors: >
159
bugprone-* ,
@@ -19,8 +13,6 @@ WarningsAsErrors: >
1913
HeaderFilterRegex: 'src/.*'
2014
FormatStyle: file
2115

22-
Standard: c++23
23-
2416
CheckOptions:
2517
- key: modernize-use-auto.MinTypeNameLength
2618
value: '5'
@@ -31,4 +23,8 @@ CheckOptions:
3123
- key: readability-identifier-naming.MemberCase
3224
value: lower_case
3325
- key: readability-identifier-naming.PrivateMemberPrefix
34-
value: '_'
26+
value: '_'
27+
- key: readability-function-size.ParameterThreshold
28+
value: '8'
29+
- key: readability-braces-around-statements.ShortStatementLines
30+
value: '0'

0 commit comments

Comments
 (0)