mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
Enable two clang-tidy checks globally that warn about uninitialized
variables and class members where the default constructor does not
initialize them:
- `cppcoreguidelines-init-variables`: local variables of POD types
- `cppcoreguidelines-pro-type-member-init` (and its alias `hicpp-member-init`):
struct/class members of POD types
All existing warnings are fixed by adding default initializers (`{}`,
`= 0`, `= false`, `= nullptr`). The compiler will optimize away
redundant initializations.
NOLINT annotations are added for reasonable exceptions:
- Anonymous unions used for type-punning
- `std::type_index` members (no default constructor)
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
https://github.com/imneme/pcg-cpp 0ca2e8ea6ba212bdfbc6219c2313c45917e34b8d