-
Notifications
You must be signed in to change notification settings - Fork 2.9k
/
.clang-tidy
60 lines (58 loc) · 2.12 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
---
# NOTE:
# The check is a multiline string here. Comment must not be moved into the string.
# Be sure to keep the disabled rules alphabetically sorted.
#
# Checks that are turned off:
#
# -cppcoreguidelines-macro-usage: There are a lot of false-positives like Function-like macro 'Foo' used; consider a 'constexpr' template function
# -cppcoreguidelines-pro-type-reinterpret-cast: Originally turned off.
# -google-readability-todo: Not enforced.
# -google-runtime-references: https://github.com/microsoft/onnxruntime/blob/main/docs/Coding_Conventions_and_Standards.md#c-code-style.
# -modernize-concat-nested-namespaces: We don't use it.
# -modernize-use-trailing-return-type: Stylistic preference we do not enforce.
# -readability-identifier-length: A lot of numerical code rely on short names to improve readability.
# -readability-uppercase-literal-suffix: We accept lowercase suffixes
Checks: >
-*,
cppcoreguidelines-*,
google-*,
readability-*,
modernize-*,
bugprone-*,
performance-*,
misc-*,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-pro-type-reinterpret-cast,
-google-readability-todo,
-google-runtime-references,
-modernize-concat-nested-namespaces,
-modernize-use-trailing-return-type,
-readability-identifier-length,
-readability-uppercase-literal-suffix,
WarningsAsErrors: ""
HeaderFilterRegex: '.*onnxruntime\/core\/.*'
AnalyzeTemporaryDtors: false
FormatStyle: none
CheckOptions:
- key: google-readability-braces-around-statements.ShortStatementLines
value: "1"
- key: google-readability-function-size.StatementThreshold
value: "800"
- key: google-readability-namespace-comments.ShortNamespaceLines
value: "10"
- key: google-readability-namespace-comments.SpacesBeforeComments
value: "2"
- key: modernize-loop-convert.MaxCopySize
value: "16"
- key: modernize-loop-convert.MinConfidence
value: reasonable
- key: modernize-loop-convert.NamingStyle
value: CamelCase
- key: modernize-pass-by-value.IncludeStyle
value: google
- key: modernize-replace-auto-ptr.IncludeStyle
value: google
- key: modernize-use-nullptr.NullMacros
value: "NULL"
---