forked from clearmatics/zeth
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-tidy
67 lines (63 loc) · 2.32 KB
/
.clang-tidy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
#
# Clang-tidy configuration for Zeth
# This file follows the YAML syntax, see: https://yaml.org/spec/
#
# More details on clang-tidy configuration can be found here:
# - https://stackoverflow.com/questions/54202025/where-to-find-list-of-available-options-for-clang-tidy-readability-identifier-n
#
#
# Checks removed:
#
# -modernize-avoid-c-arrays is removed because in some scenarios
# C arrays are the best data structure to use. We encourage to use
# C++ containers as much as possible, but we want to keep using
# C arrays when relevant.
#
# -modernize-use-bool-literals is removed because it is easier to
# read and implement functions processing boolean vectors/matrices
# (e.g. sha256) when using '0' and '1' instead of 'true' and 'false.
# In other contexts, we strongly encourage to use bool literals however.
#
# -modernize-use-auto is removed as a way to maximize type verbosity.
# This comes at the cost of duplications in type names (when initializing
# with a cast for instance), and makes the code a bit less maintainable and
# flexible. We consider this negligible compared to the benefits of
# manipulating variables that are explicitly typed.
#
Checks: >
-*,
bugprone-*,
llvm-*,
misc-*,
modernize-*,
performance-*,
portability-*,
readability-*,
-modernize-avoid-c-arrays,
-modernize-use-bool-literals,
-modernize-use-auto
HeaderFilterRegex: 'libzeth/*.(h|hpp|cpp)'
CheckOptions:
- key: readability-identifier-naming.MacroDefinitionCase
value: UPPER_CASE
- key: readability-identifier-naming.StaticConstantCase
value: UPPER_CASE
- key: readability-identifier-naming.ConstantParameterCase
value: lower_case
- key: readability-identifier-naming.FunctionCase
value: lower_case
- key: readability-identifier-naming.VariableCase
value: lower_case
- key: readability-identifier-naming.ClassCase
value: lower_case
- key: readability-identifier-naming.ClassMemberCase
value: lower_case
- key: readability-identifier-naming.NamespaceCase
value: lower_case
- key: readability-identifier-naming.TemplateParameterCase
value: CamelCase
- key: readability-identifier-naming.TemplateParameterSuffix
value: T
- key: readability-implicit-bool-conversion.AllowIntegerConditions
value: '1'