-
Notifications
You must be signed in to change notification settings - Fork 347
/
.clang-tidy
74 lines (72 loc) · 2.71 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
68
69
70
71
72
73
74
# Copyright (c) 2020 The Orbit Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
---
Checks: >
-*,
abseil-*,
bugprone-*,
cert-*,
-cert-err58-cpp,
-cert-dcl16-c
cppcoreguidelines-*,
-cppcoreguidelines-special-member-functions,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-non-private-member-variables-in-classes,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-avoid-non-const-global-variables,
-cppcoreguidelines-owning-memory,
misc-*,
-misc-non-private-member-variables-in-classes,
-misc-use-anonymous-namespace,
google-*,
-google-default-arguments,
-google-runtime-references,
modernize-*,
-modernize-deprecated-headers,
-modernize-use-noexcept,
-modernize-use-trailing-return-type,
performance-*,
-performance-noexcept-move-constructor,
readability-*,
-readability-identifier-length,
-readability-function-cognitive-complexity,
-readability-magic-numbers,
-readability-non-const-parameter,
-readability-uppercase-literal-suffix,
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
CheckOptions:
- key: google-readability-namespace-comments.SpacesBeforeComments
value: '2'
- key: readability-identifier-naming.ClassCase
value: 'CamelCase'
- key: readability-identifier-naming.ConstexprVariableCase
value: 'CamelCase'
- key: readability-identifier-naming.ConstexprVariablePrefix
value: 'k'
- key: readability-identifier-naming.StaticConstantCase
value: 'CamelCase'
- key: readability-identifier-naming.StaticConstantPrefix
value: 'k'
- key: readability-identifier-naming.EnumCase
value: 'CamelCase'
- key: readability-identifier-naming.EnumConstantCase
value: 'CamelCase'
- key: readability-identifier-naming.EnumConstantPrefix
value: 'k'
# Let's enable this once we got rid of the snake_case data functions.
# - key: readability-identifier-naming.FunctionCase
# value: 'CamelCase'
- key: readability-identifier-naming.LocalVariableCase
value: 'lower_case'
- key: readability-identifier-naming.ParameterCase
value: 'lower_case'
- key: readability-identifier-naming.StructCase
value: 'CamelCase'
- key: readability-braces-around-statements.ShortStatementLines
value: '1'
- key: cppcoreguidelines-avoid-do-while.IgnoreMacros
value: 'true'
...