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@@ -12,17 +12,9 @@ readability-redundant-declaration,
3 readability-redundant-string-init,
4 '
5 WarningsAsErrors: '
6-bugprone-argument-comment,
7-bugprone-use-after-move,
8-misc-unused-using-decls,
9-modernize-use-default-member-init,
10-modernize-use-nullptr,
11 performance-for-range-copy,
12-performance-move-const-arg,
13-performance-unnecessary-copy-initialization,
14-readability-redundant-declaration,
15-readability-redundant-string-init,
16 '
17 CheckOptions:
18 - key: performance-move-const-arg.CheckTriviallyCopyableMove
19 value: false
20+HeaderFilterRegex: '.'