aboutsummaryrefslogtreecommitdiff
path: root/.clang-tidy
blob: 040ceea843657c7e686bdb411d1c20b0febefce9 (plain) (blame)
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
---

Checks: >
  -*,
  bugprone-*,
  cert-env33-c,
  cert-err34-c,
  cert-flp30-c,
  cert-msc30-c,
  clang-analyzer-*,
  clang-diagnostics-*,
  google-*,
  misc-*,
  misc-non-copyable-objects,
  misc-static-assert,
  performance-*,
  portability-*,
  readability-*,
  -bugprone-assignment-in-if-condition,
  -bugprone-branch-clone,
  -bugprone-easily-swappable-parameters,
  -bugprone-narrowing-conversions,
  -bugprone-sizeof-expression,
  -bugprone-unused-return-value,
  -clang-analyzer-security.insecureAPI.strcpy,
  -google-readability-function-size,
  -misc-no-recursion,
  -misc-unused-parameters,
  -performance-no-int-to-ptr,
  -readability-else-after-return,
  -readability-function-*,
  -readability-identifier-length,
  -readability-isolate-declaration,
  -readability-magic-numbers,
  -readability-redundant-function-ptr-dereference,
  -readability-suspicious-call-argument,

CheckOptions:
  - key: readability-identifier-naming.FunctionCase
    value: lower_case
  - key: readability-identifier-naming.GlobalConstantCase
    value: CamelCase
  - key: readability-identifier-naming.GlobalConstantPrefix
    value: k
  - key: readability-identifier-naming.StaticConstantCase
    value: CamelCase
  - key: readability-identifier-naming.StaticConstantPrefix
    value: k
  - key: readability-identifier-naming.StructCase
    value: CamelCase
  - key: readability-identifier-naming.VariableCase
    value: lower_case

WarningsAsErrors: ''

HeaderFilterRegex: "(src/[cjson|klib|mpack|unicode|xdiff]/).*\\.h$"
...