-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.clang-tidy
More file actions
35 lines (32 loc) · 1.21 KB
/
Copy path.clang-tidy
File metadata and controls
35 lines (32 loc) · 1.21 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
---
# Patternia clang-tidy configuration.
#
# Scope: correctness and performance findings in library headers.
# Style/readability checks stay with clang-format; two bugprone
# checks are disabled because they conflict with deliberate design
# idioms (see comments inline).
Checks: >
bugprone-*,
clang-analyzer-*,
performance-*,
portability-*,
concurrency-*,
-bugprone-crtp-constructor-accessibility,
-bugprone-branch-clone,
-bugprone-easily-swappable-parameters,
-bugprone-exception-escape
# Only library headers are checked; test/sample code and
# third-party headers are out of scope.
HeaderFilterRegex: 'include/ptn/'
# CI treats every warning as an error.
WarningsAsErrors: '*'
# Rationale for disabled checks:
# - bugprone-crtp-constructor-accessibility: pattern_base and
# guard_operator are intentional public CRTP mixins.
# - bugprone-branch-clone: repeated branch bodies are a normal
# consequence of constexpr/if-constexpr metaprogramming.
# - bugprone-easily-swappable-parameters: fires pervasively on
# forwarding-reference machinery where parameter order is part
# of the DSL contract.
# - bugprone-exception-escape: noisy on executable mains (samples),
# irrelevant for a header-only library.