-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-tidy
43 lines (41 loc) · 2.26 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
#
# Copyright Christopher Di Bella
# Copyright (C) Codeplay Software Limited.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# The list of checks is injected in CMakeLists.txt
FormatStyle: file
CheckOptions:
- key: bugprone-dangling-handle.HandleClasses
value: '::std::basic_string_view;::std::ranges::subrange;::std::ranges::all_view;::std::ranges::common_view;::std::ranges::keys_view;::std::ranges::values_view'
- key: bugprone-exception-escape.FunctionsThatShouldNotThrow
value: 'iter_move,iter_swap'
- key: bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression
value: 1
- key: bugprone-suspicious-string-compare.StringCompareLikeFunctions
value: '__builtin_memcmp,__builtin_strcasecmp,__builtin_strcmp,__builtin_strncasecmp,__builtin_strncmp,_mbscmp,_mbscmp_l,_mbsicmp,_mbsicmp_l,_mbsnbcmp,_mbsnbcmp_l,_mbsnbicmp,_mbsnbicmp_l,_mbsncmp,_mbsncmp_l,_mbsnicmp,_mbsnicmp_l,_memicmp,_memicmp_l,_stricmp,_stricmp_l,_strnicmp,_strnicmp_l,_wcsicmp,_wcsicmp_l,_wcsnicmp,_wcsnicmp_l,lstrcmp,lstrcmpi,memcmp,memicmp,strcasecmp,strcmp,strcmpi,stricmp,strncasecmp,strncmp,strnicmp,wcscasecmp,wcscmp,wcsicmp,wcsncmp,wcsnicmp,wmemcmp'
- key: performance-faster-string-find.StringLikeClasses
value: '::std::basic_string,::std::basic_string_view'
- key: readability-function-size.StatementThreshold
value: '100'
- key: readability-implicit-bool-conversion.AllowPointerConditions
value: '1'
- key: readability-redundant-declaration.IgnoreMacros
value: '0'
- key: readability-simplify-boolean-expr.ChainedConditionalReturn,
value: '1'
- key: readability-simplify-boolean-expr.ChainedConditionalAssignment,
value: '1'
- key: readability-simplify-subscript-expr.Types
value: '::std::basic_string;::std::basic_string_view;::std::vector;::std::array,::gsl::span'