forked from category-labs/monad
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-tidy
More file actions
69 lines (68 loc) · 3.1 KB
/
.clang-tidy
File metadata and controls
69 lines (68 loc) · 3.1 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
# Inspired by https://github.com/chromium/chromium/blob/main/.clang-tidy
# but then manually adjusted by @niall to match Monad's code styling.
# It may be worth from time to time to compare this to that above to
# see what new clang-tidy linters the Chromium team have decided are
# useful to enable.
#
# Run `scripts/apply-clang-tidy-fixes.sh` to have clang-tidy fix up
# your code for you.
Checks: '-*,
bugprone-*,
-bugprone-branch-clone,
-bugprone-easily-swappable-parameters,
-bugprone-unchecked-optional-access,
-bugprone-unhandled-self-assignment,
clang-analyzer*,
google-build-explicit-make-pair,
google-explicit-constructor,
llvm-include-order,
misc-const-correctness,
misc-definitions-in-headers,
misc-include-cleaner,
misc-misleading-identifier,
misc-misplaced-const,
misc-homoglyph,
misc-static-assert,
misc-throw-by-value-catch-by-reference,
modernize-avoid-bind,
modernize-concat-nested-namespaces,
modernize-loop-convert,
modernize-make-shared,
modernize-make-unique,
modernize-redundant-void-arg,
modernize-replace-random-shuffle,
modernize-shrink-to-fit,
modernize-use-bool-literals,
modernize-use-emplace,
modernize-use-equals-default,
modernize-use-equals-delete,
modernize-use-noexcept,
modernize-use-nullptr,
modernize-use-transparent-functors,
performance-*,
-performance-avoid-endl,
-performance-enum-size,
-performance-no-int-to-ptr,
-performance-unnecessary-value-param,
readability-isolate-declaration,
readability-qualified-auto'
WarningsAsErrors: '*'
CheckOptions:
- key: bugprone-assert-side-effect.AssertMacros
value: assert,MONAD_DEBUG_ASSERT
- key: bugprone-dangling-handle.HandleClasses
value: ::std::basic_string_view;::std::span;::absl::string_view
- key: bugprone-string-constructor.StringNames
value: ::std::basic_string;::std::basic_string_view;::absl::string_view
- key: misc-include-cleaner.IgnoreHeaders
value: gtest/|gmock/|sys/|CLI/|boost/|llvm/
- key: modernize-use-default-member-init.UseAssignment
value: 1
- key: modernize-use-transparent-functors.SafeMode
value: 1
- key: modernize-use-emplace.IgnoreImplicitConstructors
value: 1
- key: modernize-loop-convert.UseCxx20ReverseRanges
value: false
...