Skip to content

Commit 0b0351e

Browse files
Warchantkamilsa
authored andcommitted
Initial commit
Signed-off-by: Bogdan Vaneev <[email protected]>
0 parents  commit 0b0351e

Some content is hidden

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

41 files changed

+2535
-0
lines changed

.clang-format

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
BasedOnStyle: Google
2+
NamespaceIndentation: All
3+
BreakBeforeBinaryOperators: NonAssignment
4+
AlignOperands: true
5+
DerivePointerAlignment: false
6+
PointerAlignment: Right
7+
BinPackArguments: false
8+
BinPackParameters: false
9+
AllowShortFunctionsOnASingleLine: Empty

.clang-tidy

+262
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,262 @@
1+
---
2+
Checks: '-*,clang-analyzer-*,clang-diagnostic-*,readability-*,modernize-*,boost-*,bugprone-*,cppcoreguidelines-*,google-*,hicpp-*,performance-*,readability-*,-google-readability-namespace-comments,-readability-inconsistent-declaration-parameter-name,-readability-braces-around-statements,-hicpp-signed-bitwise,-google-runtime-references,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-readability-magic-numbers,-hicpp-explicit-conversions,-hicpp-uppercase-literal-suffix,-readability-uppercase-literal-suffix,-hicpp-no-array-decay,-hicpp-special-member-functions,-bugprone-narrowing-conversions,-modernize-use-nodiscard,-google-readability-braces-around-statements,-hicpp-braces-around-statements,-bugprone-suspicious-semicolon,-readability-named-parameter,-hicpp-named-parameter,-readability-identifier-naming'
3+
WarningsAsErrors: 'modernize-*,cppcoreguidelines-*,boost-*,performance-*,google-build-using-namespace,readability-else-after-return,google-readability-todo'
4+
HeaderFilterRegex: 'core/.*\.hpp'
5+
AnalyzeTemporaryDtors: false
6+
FormatStyle: .clang-format
7+
User: user
8+
CheckOptions:
9+
- key: bugprone-argument-comment.StrictMode
10+
value: '0'
11+
- key: bugprone-assert-side-effect.AssertMacros
12+
value: assert
13+
- key: bugprone-assert-side-effect.CheckFunctionCalls
14+
value: '0'
15+
- key: bugprone-dangling-handle.HandleClasses
16+
value: 'std::basic_string_view;std::experimental::basic_string_view'
17+
- key: bugprone-exception-escape.FunctionsThatShouldNotThrow
18+
value: ''
19+
- key: bugprone-exception-escape.IgnoredExceptions
20+
value: ''
21+
- key: bugprone-misplaced-widening-cast.CheckImplicitCasts
22+
value: '0'
23+
- key: bugprone-sizeof-expression.WarnOnSizeOfCompareToConstant
24+
value: '1'
25+
- key: bugprone-sizeof-expression.WarnOnSizeOfConstant
26+
value: '1'
27+
- key: bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression
28+
value: '0'
29+
- key: bugprone-sizeof-expression.WarnOnSizeOfThis
30+
value: '1'
31+
- key: bugprone-string-constructor.LargeLengthThreshold
32+
value: '8388608'
33+
- key: bugprone-string-constructor.WarnOnLargeLength
34+
value: '1'
35+
- key: bugprone-suspicious-enum-usage.StrictMode
36+
value: '0'
37+
- key: bugprone-suspicious-missing-comma.MaxConcatenatedTokens
38+
value: '5'
39+
- key: bugprone-suspicious-missing-comma.RatioThreshold
40+
value: '0.200000'
41+
- key: bugprone-suspicious-missing-comma.SizeThreshold
42+
value: '5'
43+
- key: bugprone-suspicious-string-compare.StringCompareLikeFunctions
44+
value: ''
45+
- key: bugprone-suspicious-string-compare.WarnOnImplicitComparison
46+
value: '1'
47+
- key: bugprone-suspicious-string-compare.WarnOnLogicalNotComparison
48+
value: '0'
49+
- key: bugprone-unused-return-value.CheckedFunctions
50+
value: '::std::async;::std::launder;::std::remove;::std::remove_if;::std::unique;::std::unique_ptr::release;::std::basic_string::empty;::std::vector::empty'
51+
- key: cppcoreguidelines-no-malloc.Allocations
52+
value: '::malloc;::calloc'
53+
- key: cppcoreguidelines-no-malloc.Deallocations
54+
value: '::free'
55+
- key: cppcoreguidelines-no-malloc.Reallocations
56+
value: '::realloc'
57+
- key: cppcoreguidelines-owning-memory.LegacyResourceConsumers
58+
value: '::free;::realloc;::freopen;::fclose'
59+
- key: cppcoreguidelines-owning-memory.LegacyResourceProducers
60+
value: '::malloc;::aligned_alloc;::realloc;::calloc;::fopen;::freopen;::tmpfile'
61+
- key: cppcoreguidelines-pro-bounds-constant-array-index.GslHeader
62+
value: ''
63+
- key: cppcoreguidelines-pro-bounds-constant-array-index.IncludeStyle
64+
value: '0'
65+
- key: cppcoreguidelines-pro-type-member-init.IgnoreArrays
66+
value: '0'
67+
- key: cppcoreguidelines-special-member-functions.AllowMissingMoveFunctions
68+
value: '0'
69+
- key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor
70+
value: '1'
71+
- key: google-build-namespaces.HeaderFileExtensions
72+
value: ',h,hh,hpp,hxx'
73+
- key: google-global-names-in-headers.HeaderFileExtensions
74+
value: ',h,hh,hpp,hxx'
75+
- key: google-readability-braces-around-statements.ShortStatementLines
76+
value: '1'
77+
- key: google-readability-function-size.BranchThreshold
78+
value: '4294967295'
79+
- key: google-readability-function-size.LineThreshold
80+
value: '4294967295'
81+
- key: google-readability-function-size.NestingThreshold
82+
value: '4294967295'
83+
- key: google-readability-function-size.ParameterThreshold
84+
value: '4294967295'
85+
- key: google-readability-function-size.StatementThreshold
86+
value: '800'
87+
- key: google-readability-function-size.VariableThreshold
88+
value: '4294967295'
89+
- key: google-readability-namespace-comments.ShortNamespaceLines
90+
value: '10'
91+
- key: google-readability-namespace-comments.SpacesBeforeComments
92+
value: '2'
93+
- key: google-runtime-int.SignedTypePrefix
94+
value: int
95+
- key: google-runtime-int.TypeSuffix
96+
value: ''
97+
- key: google-runtime-int.UnsignedTypePrefix
98+
value: uint
99+
- key: google-runtime-references.WhiteListTypes
100+
value: ''
101+
- key: hicpp-braces-around-statements.ShortStatementLines
102+
value: '0'
103+
- key: hicpp-function-size.BranchThreshold
104+
value: '4294967295'
105+
- key: hicpp-function-size.LineThreshold
106+
value: '4294967295'
107+
- key: hicpp-function-size.NestingThreshold
108+
value: '4294967295'
109+
- key: hicpp-function-size.ParameterThreshold
110+
value: '4294967295'
111+
- key: hicpp-function-size.StatementThreshold
112+
value: '800'
113+
- key: hicpp-function-size.VariableThreshold
114+
value: '4294967295'
115+
- key: hicpp-member-init.IgnoreArrays
116+
value: '0'
117+
- key: hicpp-move-const-arg.CheckTriviallyCopyableMove
118+
value: '1'
119+
- key: hicpp-multiway-paths-covered.WarnOnMissingElse
120+
value: '0'
121+
- key: hicpp-named-parameter.IgnoreFailedSplit
122+
value: '0'
123+
- key: hicpp-no-malloc.Allocations
124+
value: '::malloc;::calloc'
125+
- key: hicpp-no-malloc.Deallocations
126+
value: '::free'
127+
- key: hicpp-no-malloc.Reallocations
128+
value: '::realloc'
129+
- key: hicpp-special-member-functions.AllowMissingMoveFunctions
130+
value: '0'
131+
- key: hicpp-special-member-functions.AllowSoleDefaultDtor
132+
value: '0'
133+
- key: hicpp-use-auto.MinTypeNameLength
134+
value: '5'
135+
- key: hicpp-use-auto.RemoveStars
136+
value: '0'
137+
- key: hicpp-use-emplace.ContainersWithPushBack
138+
value: '::std::vector;::std::list;::std::deque'
139+
- key: hicpp-use-emplace.SmartPointers
140+
value: '::std::shared_ptr;::std::unique_ptr;::std::auto_ptr;::std::weak_ptr'
141+
- key: hicpp-use-emplace.TupleMakeFunctions
142+
value: '::std::make_pair;::std::make_tuple'
143+
- key: hicpp-use-emplace.TupleTypes
144+
value: '::std::pair;::std::tuple'
145+
- key: hicpp-use-equals-default.IgnoreMacros
146+
value: '1'
147+
- key: hicpp-use-noexcept.ReplacementString
148+
value: ''
149+
- key: hicpp-use-noexcept.UseNoexceptFalse
150+
value: '1'
151+
- key: hicpp-use-nullptr.NullMacros
152+
value: ''
153+
- key: modernize-loop-convert.MaxCopySize
154+
value: '16'
155+
- key: modernize-loop-convert.MinConfidence
156+
value: reasonable
157+
- key: modernize-loop-convert.NamingStyle
158+
value: CamelCase
159+
- key: modernize-make-shared.IgnoreMacros
160+
value: '1'
161+
- key: modernize-make-shared.IncludeStyle
162+
value: '0'
163+
- key: modernize-make-shared.MakeSmartPtrFunction
164+
value: 'std::make_shared'
165+
- key: modernize-make-shared.MakeSmartPtrFunctionHeader
166+
value: memory
167+
- key: modernize-make-unique.IgnoreMacros
168+
value: '1'
169+
- key: modernize-make-unique.IncludeStyle
170+
value: '0'
171+
- key: modernize-make-unique.MakeSmartPtrFunction
172+
value: 'std::make_unique'
173+
- key: modernize-make-unique.MakeSmartPtrFunctionHeader
174+
value: memory
175+
- key: modernize-pass-by-value.IncludeStyle
176+
value: google
177+
- key: modernize-pass-by-value.ValuesOnly
178+
value: '0'
179+
- key: modernize-raw-string-literal.ReplaceShorterLiterals
180+
value: '0'
181+
- key: modernize-replace-auto-ptr.IncludeStyle
182+
value: google
183+
- key: modernize-replace-random-shuffle.IncludeStyle
184+
value: google
185+
- key: modernize-use-auto.MinTypeNameLength
186+
value: '5'
187+
- key: modernize-use-auto.RemoveStars
188+
value: '0'
189+
- key: modernize-use-default-member-init.IgnoreMacros
190+
value: '1'
191+
- key: modernize-use-default-member-init.UseAssignment
192+
value: '0'
193+
- key: modernize-use-emplace.ContainersWithPushBack
194+
value: '::std::vector;::std::list;::std::deque'
195+
- key: modernize-use-emplace.SmartPointers
196+
value: '::std::shared_ptr;::std::unique_ptr;::std::auto_ptr;::std::weak_ptr'
197+
- key: modernize-use-emplace.TupleMakeFunctions
198+
value: '::std::make_pair;::std::make_tuple'
199+
- key: modernize-use-emplace.TupleTypes
200+
value: '::std::pair;::std::tuple'
201+
- key: modernize-use-equals-default.IgnoreMacros
202+
value: '1'
203+
- key: modernize-use-noexcept.ReplacementString
204+
value: ''
205+
- key: modernize-use-noexcept.UseNoexceptFalse
206+
value: '1'
207+
- key: modernize-use-nullptr.NullMacros
208+
value: 'NULL'
209+
- key: modernize-use-transparent-functors.SafeMode
210+
value: '0'
211+
- key: modernize-use-using.IgnoreMacros
212+
value: '1'
213+
- key: performance-faster-string-find.StringLikeClasses
214+
value: 'std::basic_string'
215+
- key: performance-for-range-copy.WarnOnAllAutoCopies
216+
value: '0'
217+
- key: performance-inefficient-string-concatenation.StrictMode
218+
value: '0'
219+
- key: performance-inefficient-vector-operation.VectorLikeClasses
220+
value: '::std::vector'
221+
- key: performance-move-const-arg.CheckTriviallyCopyableMove
222+
value: '1'
223+
- key: performance-move-constructor-init.IncludeStyle
224+
value: google
225+
- key: performance-type-promotion-in-math-fn.IncludeStyle
226+
value: google
227+
- key: performance-unnecessary-value-param.IncludeStyle
228+
value: google
229+
- key: readability-braces-around-statements.ShortStatementLines
230+
value: '0'
231+
- key: readability-function-size.BranchThreshold
232+
value: '4294967295'
233+
- key: readability-function-size.LineThreshold
234+
value: '4294967295'
235+
- key: readability-function-size.NestingThreshold
236+
value: '4294967295'
237+
- key: readability-function-size.ParameterThreshold
238+
value: '4294967295'
239+
- key: readability-function-size.StatementThreshold
240+
value: '800'
241+
- key: readability-function-size.VariableThreshold
242+
value: '4294967295'
243+
- key: readability-identifier-naming.IgnoreFailedSplit
244+
value: '0'
245+
- key: readability-implicit-bool-conversion.AllowIntegerConditions
246+
value: '0'
247+
- key: readability-implicit-bool-conversion.AllowPointerConditions
248+
value: '0'
249+
- key: readability-inconsistent-declaration-parameter-name.IgnoreMacros
250+
value: '1'
251+
- key: readability-inconsistent-declaration-parameter-name.Strict
252+
value: '0'
253+
- key: readability-simplify-boolean-expr.ChainedConditionalAssignment
254+
value: '0'
255+
- key: readability-simplify-boolean-expr.ChainedConditionalReturn
256+
value: '0'
257+
- key: readability-simplify-subscript-expr.Types
258+
value: '::std::basic_string;::std::basic_string_view;::std::vector;::std::array'
259+
- key: readability-static-accessed-through-instance.NameSpecifierNestingThreshold
260+
value: '3'
261+
- key: cppcoreguidelines-macro-usage.CheckCapsOnly
262+
value: '1'

.gitignore

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
config/__pycahe__
2+
**/__pycache__/*
3+
__pycache__/*
4+
build/*
5+
*.DS_Store
6+
*.vscode/
7+
*.swp
8+
*.class
9+
*.gch
10+
*.a
11+
*.o
12+
*.pb.cc
13+
*.pb.h
14+
*.retry
15+
.gradle/*
16+
.vscode/*
17+
.idea/*
18+
*xcworkspace*
19+
*cmake-build-debug*
20+
CMakeLists.txt.user
21+
CMakeCache.txt
22+
CMakeFiles/*
23+
cmake-build-debu/*
24+
docker/build/iroha.tar
25+
cmake-build-debug/*
26+
external/*
27+
core/infra/protobuf
28+
docker/tiny/iroha/
29+
include/generated/*
30+
.scannerwork/
31+
peers.list
32+
cmake-build*
33+
34+
cmake-build*
35+
.gtm
36+
/.gtm/
37+
38+
*.deb
39+
40+
build
41+
dist
42+
ninja_build_release
43+
_builds
44+
_logs

0 commit comments

Comments
 (0)