-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path.clang-tidy
More file actions
51 lines (47 loc) · 2.32 KB
/
Copy path.clang-tidy
File metadata and controls
51 lines (47 loc) · 2.32 KB
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
# Copyright © Advanced Micro Devices, Inc., or its affiliates.
# SPDX-License-Identifier: MIT
Checks: >
-*,
bugprone-*
misc-*,
modernize-*,
performance-*,
portability-*,
readability-*,
-fuchsia-trailing-return,
-modernize-use-trailing-return-type,
-modernize-concat-nested-namespaces,
-modernize-use-nodiscard,
-modernize-use-using,
-performance-enum-size,
-readability-magic-numbers,
-readability-identifier-length,
-readability-qualified-auto,
-readability-uppercase-literal-suffix,
-readability-avoid-unconditional-preprocessor-if,
-readability-use-anyofallof,
-readability-function-cognitive-complexity
WarningsAsErrors: "*"
HeaderFileExtensions: ['h','hpp']
# This regex is a inclusion filter for the files to be checked. Its a Posix regex and
# does not seem to support negative lookahead.
HeaderFilterRegex: '*'
ExcludeHeaderFilterRegex: '^(.*data_objects.*)$'
CheckOptions:
- { key: readability-identifier-naming.NamespaceCase, value: lower_case }
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
- { key: readability-identifier-naming.StructCase, value: CamelCase }
- { key: readability-identifier-naming.FunctionCase, value: camelBack }
- { key: readability-identifier-naming.VariableCase, value: camelBack }
- { key: readability-identifier-naming.ParameterCase, value: camelBack }
- { key: readability-identifier-naming.PrivateMemberCase, value: camelBack }
- { key: readability-identifier-naming.PrivateMemberPrefix, value: _ }
- { key: readability-identifier-naming.EnumCase, value: CamelCase }
- { key: readability-identifier-naming.EnumConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.GlobalConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.ConstexprVariableCase, value: UPPER_CASE }
- { key: readability-identifier-naming.StaticVariablePrefix, value: s_ }
# Ignore hipdnnHandle name everywhere (required for public API compatibility)
- { key: readability-identifier-naming.StructIgnoredRegexp, value: "hipdnnHandle" }
- { key: readability-identifier-naming.ClassIgnoredRegexp, value: "hipdnnHandle" }
- { key: readability-identifier-naming.TypedefIgnoredRegexp, value: "hipdnnHandle" }