Skip to content

Commit ffda8a4

Browse files
committed
Add clang-tidy and clang-format files
1 parent 4bc1a05 commit ffda8a4

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

.clang-format

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
BasedOnStyle: LLVM
2+
AlignEscapedNewlines: Left
3+
IndentWidth: 4
4+
UseTab: Never
5+
DeriveLineEnding: false
6+
UseCRLF: false
7+
AccessModifierOffset: -4

.clang-tidy

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
Checks: >
2+
bugprone-*,
3+
clang-analyzer-*,
4+
concurrency-*,
5+
cppcoreguidelines-*,
6+
fuchsia-*,
7+
misc-*,
8+
modernize-*,
9+
performance-*,
10+
portability-*,
11+
readability-*,
12+
llvm-*,
13+
-llvm-header-guard,
14+
-cppcoreguidelines-pro-type-vararg,
15+
-cppcoreguidelines-avoid-const-or-ref-data-members
16+
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
17+
-fuchsia-default-arguments-calls,
18+
-cppcoreguidelines-virtual-class-destructor,
19+
-bugprone-easily-swappable-parameters,
20+
-readability-identifier-length,
21+
-clang-diagnostic-unused-command-line-argument,
22+
-modernize-use-trailing-return-type,
23+
-fuchsia-trailing-return,
24+
-cppcoreguidelines-pro-type-vararg
25+
WarningsAsErrors: "*"
26+
FormatStyle: file
27+
CheckOptions:
28+
- key: cppcoreguidelines-special-member-functions.AllowMissingMoveFunctionsWhenCopyIsDeleted
29+
value: true
30+
- key: readability-identifier-naming.ClassCase
31+
value: CamelCase
32+
- key: readability-identifier-naming.EnumCase
33+
value: CamelCase
34+
- key: readability-identifier-naming.UnionCase
35+
value: CamelCase
36+
- key: readability-identifier-naming.FunctionCase
37+
value: lower_case
38+
- key: readability-identifier-naming.ParameterCase
39+
value: lower_case
40+
- key: readability-identifier-naming.VariableCase
41+
value: lower_case
42+
- key: readability-identifier-naming.GlobalVariablePrefix
43+
value: g_
44+
- key: readability-identifier-naming.MemberCase
45+
value: lower_case
46+
- key: readability-identifier-naming.PrivateMemberPrefix
47+
value: m_
48+
- key: readability-identifier-naming.ProtectedMemberPrefix
49+
value: m_
50+
- key: readability-identifier-naming.GlobalConstantCase
51+
value: UPPER_CASE
52+
- key: modernize-use-using.IgnoreExternC
53+
value: true

0 commit comments

Comments
 (0)