onnxruntime
/
.clang-tidy
60 строк · 2.1 Кб
1---
2
3# NOTE:
4# The check is a multiline string here. Comment must not be moved into the string.
5# Be sure to keep the disabled rules alphabetically sorted.
6#
7# Checks that are turned off:
8#
9# -cppcoreguidelines-macro-usage: There are a lot of false-positives like Function-like macro 'Foo' used; consider a 'constexpr' template function
10# -cppcoreguidelines-pro-type-reinterpret-cast: Originally turned off.
11# -google-readability-todo: Not enforced.
12# -google-runtime-references: https://github.com/microsoft/onnxruntime/blob/main/docs/Coding_Conventions_and_Standards.md#c-code-style.
13# -modernize-concat-nested-namespaces: We don't use it.
14# -modernize-use-trailing-return-type: Stylistic preference we do not enforce.
15# -readability-identifier-length: A lot of numerical code rely on short names to improve readability.
16# -readability-uppercase-literal-suffix: We accept lowercase suffixes
17
18Checks: >
19-*,
20cppcoreguidelines-*,
21google-*,
22readability-*,
23modernize-*,
24bugprone-*,
25performance-*,
26misc-*,
27-cppcoreguidelines-macro-usage,
28-cppcoreguidelines-pro-type-reinterpret-cast,
29-google-readability-todo,
30-google-runtime-references,
31-modernize-concat-nested-namespaces,
32-modernize-use-trailing-return-type,
33-readability-identifier-length,
34-readability-uppercase-literal-suffix,
35WarningsAsErrors: ""
36HeaderFilterRegex: '.*onnxruntime\/core\/.*'
37AnalyzeTemporaryDtors: false
38FormatStyle: none
39CheckOptions:
40- key: google-readability-braces-around-statements.ShortStatementLines
41value: "1"
42- key: google-readability-function-size.StatementThreshold
43value: "800"
44- key: google-readability-namespace-comments.ShortNamespaceLines
45value: "10"
46- key: google-readability-namespace-comments.SpacesBeforeComments
47value: "2"
48- key: modernize-loop-convert.MaxCopySize
49value: "16"
50- key: modernize-loop-convert.MinConfidence
51value: reasonable
52- key: modernize-loop-convert.NamingStyle
53value: CamelCase
54- key: modernize-pass-by-value.IncludeStyle
55value: google
56- key: modernize-replace-auto-ptr.IncludeStyle
57value: google
58- key: modernize-use-nullptr.NullMacros
59value: "NULL"
60---
61