Skip to content

Commit 7d234db

Browse files
committed
added nlohmann/json, configured clang tidy + format
1 parent b2edb0a commit 7d234db

File tree

3 files changed

+25872
-50
lines changed

3 files changed

+25872
-50
lines changed

.clang-format

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
Language: Cpp
33
BasedOnStyle: Google
4-
Standard: c++17
4+
Standard: c++20
55
IndentWidth: 2
66
TabWidth: 2
77
UseTab: Never
@@ -13,4 +13,8 @@ AlwaysBreakTemplateDeclarations: Yes
1313
PackConstructorInitializers: Never
1414
BreakConstructorInitializersBeforeComma: false
1515
IndentPPDirectives: None
16-
SortIncludes: Never
16+
SortIncludes: Never
17+
AllowShortFunctionsOnASingleLine: Empty
18+
DerivePointerAlignment: false
19+
PointerAlignment: Left
20+
FixNamespaceComments: true

.clang-tidy

Lines changed: 36 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,45 @@
1-
Checks: 'cppcoreguidelines-*,
2-
performance-*,
1+
Checks: >
2+
-*,
3+
bugprone-*,
4+
cert-*,
5+
clang-analyzer-*,
6+
cppcoreguidelines-*,
37
modernize-*,
4-
google-*,
5-
misc-*
6-
cert-*,
7-
readability-*,
8-
clang-analyzer-*,
9-
-performance-unnecessary-value-param,
10-
-modernize-use-trailing-return-type,
11-
-google-runtime-references,
12-
-misc-non-private-member-variables-in-classes,
13-
-readability-braces-around-statements,
14-
-google-readability-braces-around-statements,
15-
-google-readability-todo,
16-
-cppcoreguidelines-avoid-magic-numbers,
17-
-readability-magic-numbers,
18-
-readability-magic-numbers,
19-
-cppcoreguidelines-pro-type-vararg,
20-
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
21-
-cppcoreguidelines-avoid-c-arrays,
22-
-modernize-avoid-c-arrays,
23-
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
24-
-readability-named-parameter,
25-
-cert-env33-c,
26-
-cppcoreguidelines-special-member-functions,
27-
-readability-redundant-access-specifiers
28-
'
8+
performance-*,
9+
readability-*,
10+
google-*,
11+
12+
# DISABLERS (Combined Noise Reduction)
13+
-cppcoreguidelines-avoid-magic-numbers,
14+
-readability-magic-numbers,
15+
-modernize-use-trailing-return-type,
16+
-cppcoreguidelines-special-member-functions,
17+
-readability-braces-around-statements,
18+
-google-readability-braces-around-statements,
19+
-readability-identifier-length,
20+
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
21+
-cppcoreguidelines-pro-type-vararg,
22+
-bugprone-easily-swappable-parameters,
23+
-readability-named-parameter,
24+
-google-readability-todo,
25+
-google-runtime-references,
26+
-cppcoreguidelines-pro-type-reinterpret-cast,
27+
-cppcoreguidelines-avoid-const-or-ref-data-members
2928
29+
WarningsAsErrors: 'bugprone-*,performance-*,cppcoreguidelines-virtual-class-destructor'
3030

31-
WarningsAsErrors: ''
32-
FormatStyle: none
31+
FormatStyle: none
3332

34-
CheckOptions:
35-
- key: google-readability-braces-around-statements.ShortStatementLines
36-
value: '1'
33+
CheckOptions:
3734
- key: google-readability-function-size.StatementThreshold
38-
value: '800'
39-
- key: google-readability-namespace-comments.ShortNamespaceLines
40-
value: '10'
41-
- key: google-readability-namespace-comments.SpacesBeforeComments
42-
value: '2'
35+
value: '100'
4336
- key: modernize-loop-convert.MaxCopySize
4437
value: '16'
45-
- key: modernize-loop-convert.MinConfidence
46-
value: reasonable
47-
- key: modernize-loop-convert.NamingStyle
48-
value: CamelCase
49-
- key: modernize-pass-by-value.IncludeStyle
50-
value: llvm
51-
- key: modernize-replace-auto-ptr.IncludeStyle
52-
value: llvm
5338
- key: modernize-use-nullptr.NullMacros
5439
value: 'NULL'
55-
- key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor
56-
value: 'true'
57-
40+
- key: readability-identifier-naming.ClassCase
41+
value: CamelCase
42+
- key: readability-identifier-naming.VariableCase
43+
value: snake_case
44+
- key: readability-identifier-naming.MemberSuffix
45+
value: _

0 commit comments

Comments
 (0)