This PR:
- fixes the only remained check in headers, i.e., modernize-use-default-member-init
- forces clang-tidycheck all headers
Closes bitcoin/bitcoin#26703.
modernize-use-default-member-init in headers and force to check all headers
    #26705
    
      
    
  The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
See the guideline for information on the review process.
| Type | Reviewers | 
|---|---|
| ACK | MarcoFalke | 
| Concept ACK | RandyMcMillan | 
| Stale ACK | w0xlt | 
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
std::move.
        
      Concept ACK
I agree with @MarcoFalke
concept ack, but it might be good to create one pull/commit for each bugfix.
Please review:
Drafting this PR for now.
12@@ -13,7 +13,7 @@
13 
14 #include <optional>
15 
16-extern RecursiveMutex cs_main;
17+extern RecursiveMutex cs_main; // NOLINT(readability-redundant-declaration)
So this is only fixing modernize-use-default-member-init, and no other remaining checks?
Edit: Modulo #26705 (review)
So this is only fixing
modernize-use-default-member-init, and no other remaining checks?Edit: Modulo #26705 (comment)
That’s true.
See https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-default-member-init.html
review ACK b0e916913cedb8154419ec818bb9094a72fc8379 🍹
Signature:
 0-----BEGIN PGP SIGNED MESSAGE-----
 1Hash: SHA512
 2
 3review ACK b0e916913cedb8154419ec818bb9094a72fc8379 🍹
 4-----BEGIN PGP SIGNATURE-----
 5
 6iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
 7pUgbsgwAulUHjNHcytUabJBoaqpKSZ+tuqsd7gFyApI1CC7025pswCu+Ph1iCICt
 8rpOLfGLvKaWkDF54XUANxTSmk4xP9hnfYdRgllcVi7zbRg1I3Tnr3J5zt2L1PYQH
 9AcZ+p1fIZautxpg1440WHwlbJL3F8e84rQ2WPRJlpFt5gN9LuKKMVVvZpALna669
10kMVk2G9995kbpzDzQWPXYl0LC5aDwdeOIui+DUcHKzIYywTpMAHCMk1F4hUF1J6Q
11JdJ/X2pjNpxgRhCL2rdzZ47pZMUWfEMLMs0BslbCmg/6OdKa1NrtHCQZ1FOy+T3v
12/Y9D+Z1L7Ku9tzQPzADOy8oL410DZtrchANrlUVBoLBz34uWMHgp/jNqvqvy1jzh
132+4bNe+K8srE1E3y5mUvY68ddB6+4rE05mmKyBd9Rycg5XNsKVAsoZasbD0jBX9C
14adldbvwYXjOlIxXlllGGDrOB5m7kqHmWTaCN+SzjRyR/1Gy+a6epas/WHkiYHyuC
15HkGz+8hB
16=QqPj
17-----END PGP SIGNATURE-----
106@@ -107,7 +107,7 @@ class Span
107 
108 
109 public:
110-    constexpr Span() noexcept : m_data(nullptr), m_size(0) {}
111+    constexpr Span() noexcept : m_data(nullptr) {}
clang-tidy does not complain, though.