- Run `clang-tidy` with `modernize-*` checks to catch legacy patterns — auto-fix with `--fix` for `nullptr`, range-for, `auto`, and smart pointers.
- Use `clang-format` with a `.clang-format` config (Google, LLVM, or custom) — enforce in CI with `clang-format --dry-run --Werror`.
- Enable `cppcoreguidelines-*` checks in clang-tidy to enforce C++ Core Guidelines — catches resource leaks, type safety, and lifetime issues.
- Run clang-tidy with modernize-* and cppcoreguidelines-* checks.
- Use clang-format with a project-wide style config.
- Enable sanitizers in debug builds for memory and UB detection.
- Integrate clang-tidy into CMake: `set(CMAKE_CXX_CLANG_TIDY clang-tidy)`.