Split from bitcoin/bitcoin#26705 as was requested in #26705 (comment).
To test this PR, consider applying a diff as follows:
0--- a/src/.clang-tidy
1+++ b/src/.clang-tidy
2@@ -1,16 +1,7 @@
3 Checks: '
4 -*,
5-bugprone-argument-comment,
6-bugprone-use-after-move,
7-misc-unused-using-decls,
8-modernize-use-default-member-init,
9-modernize-use-nullptr,
10-performance-for-range-copy,
11 performance-move-const-arg,
12 performance-no-automatic-move,
13-performance-unnecessary-copy-initialization,
14-readability-redundant-declaration,
15-readability-redundant-string-init,
16 '
17 WarningsAsErrors: '
18 bugprone-argument-comment,
19@@ -28,4 +19,4 @@ readability-redundant-string-init,
20 CheckOptions:
21 - key: performance-move-const-arg.CheckTriviallyCopyableMove
22 value: false
23-HeaderFilterRegex: './qt'
24+HeaderFilterRegex: '.'