3 Commits

Author SHA1 Message Date
tqcq 5b871bba08 fix: use separate clang-tidy configs for test and production code
cpp-template / format (ubuntu-22.04) (push) Successful in 53s
cpp-template / format (ubuntu-24.04) (push) Successful in 54s
cpp-template / debug (ubuntu-22.04) (push) Successful in 1m50s
cpp-template / debug (ubuntu-24.04) (push) Successful in 1m51s
cpp-template / clang-tidy (ubuntu-22.04) (push) Successful in 1m40s
cpp-template / clang-tidy (ubuntu-24.04) (push) Successful in 1m38s
cpp-template / format (ubuntu-20.04) (push) Has been cancelled
cpp-template / debug (ubuntu-20.04) (push) Has been cancelled
cpp-template / clang-tidy (ubuntu-20.04) (push) Has been cancelled
cpp-template / release (ubuntu-20.04) (push) Has been cancelled
cpp-template / release (ubuntu-24.04) (push) Has been cancelled
cpp-template / install-consumer (ubuntu-20.04) (push) Has been cancelled
cpp-template / install-consumer (ubuntu-22.04) (push) Has been cancelled
cpp-template / install-consumer (ubuntu-24.04) (push) Has been cancelled
cpp-template / asan (ubuntu-20.04) (push) Has been cancelled
cpp-template / asan (ubuntu-22.04) (push) Has been cancelled
cpp-template / asan (ubuntu-24.04) (push) Has been cancelled
cpp-template / tsan (ubuntu-20.04) (push) Has been cancelled
cpp-template / tsan (ubuntu-22.04) (push) Has been cancelled
cpp-template / tsan (ubuntu-24.04) (push) Has been cancelled
cpp-template / fuzz-smoke (ubuntu-20.04) (push) Has been cancelled
cpp-template / fuzz-smoke (ubuntu-22.04) (push) Has been cancelled
cpp-template / fuzz-smoke (ubuntu-24.04) (push) Has been cancelled
cpp-template / no-network-negative (ubuntu-20.04) (push) Has been cancelled
cpp-template / no-network-negative (ubuntu-22.04) (push) Has been cancelled
cpp-template / no-network-negative (ubuntu-24.04) (push) Has been cancelled
cpp-template / release (ubuntu-22.04) (push) Has been cancelled
- Re-enable readability-magic-numbers in .clang-tidy (strict) for
  production code.
- Add .clang-tidy-test (relaxed) that excludes magic-numbers for
  *_test.cc, *_benchmark.cc, and *_fuzz.cc files.
- clang_tidy.py now selects config by file suffix via _config_for_file(),
  matching _test./_benchmark./_fuzz. against the filename.
2026-05-19 12:55:45 +08:00
tqcq 3e23f24234 fix: exclude readability-magic-numbers and fix static clang-tidy missing stddef.h
cpp-template / format (ubuntu-20.04) (push) Has been cancelled
cpp-template / format (ubuntu-22.04) (push) Has been cancelled
cpp-template / format (ubuntu-24.04) (push) Has been cancelled
cpp-template / debug (ubuntu-20.04) (push) Has been cancelled
cpp-template / debug (ubuntu-22.04) (push) Has been cancelled
cpp-template / debug (ubuntu-24.04) (push) Has been cancelled
cpp-template / clang-tidy (ubuntu-20.04) (push) Has been cancelled
cpp-template / clang-tidy (ubuntu-22.04) (push) Has been cancelled
cpp-template / clang-tidy (ubuntu-24.04) (push) Has been cancelled
cpp-template / release (ubuntu-20.04) (push) Has been cancelled
cpp-template / release (ubuntu-22.04) (push) Has been cancelled
cpp-template / release (ubuntu-24.04) (push) Has been cancelled
cpp-template / install-consumer (ubuntu-20.04) (push) Has been cancelled
cpp-template / install-consumer (ubuntu-22.04) (push) Has been cancelled
cpp-template / install-consumer (ubuntu-24.04) (push) Has been cancelled
cpp-template / asan (ubuntu-20.04) (push) Has been cancelled
cpp-template / asan (ubuntu-22.04) (push) Has been cancelled
cpp-template / asan (ubuntu-24.04) (push) Has been cancelled
cpp-template / tsan (ubuntu-20.04) (push) Has been cancelled
cpp-template / tsan (ubuntu-22.04) (push) Has been cancelled
cpp-template / tsan (ubuntu-24.04) (push) Has been cancelled
cpp-template / fuzz-smoke (ubuntu-20.04) (push) Has been cancelled
cpp-template / fuzz-smoke (ubuntu-22.04) (push) Has been cancelled
cpp-template / fuzz-smoke (ubuntu-24.04) (push) Has been cancelled
cpp-template / no-network-negative (ubuntu-20.04) (push) Has been cancelled
cpp-template / no-network-negative (ubuntu-22.04) (push) Has been cancelled
cpp-template / no-network-negative (ubuntu-24.04) (push) Has been cancelled
- Exclude readability-magic-numbers from .clang-tidy checks; test and
  benchmark files contain literal test data that should not be treated as
  magic numbers.
- Add detect_system_include_extra_args() to clang_tidy.py that queries
  gcc -print-file-name=include at runtime, passing the result via
  --extra-arg=-isystem to the static clang-tidy binary.  This fixes the
  'stddef.h not found' error on systems where the bundled static binary
  lacks a resource directory, without hardcoding any paths.
2026-05-19 12:46:11 +08:00
tqcq 66b5157acb tools: add developer verification scripts 2026-05-18 09:41:16 +08:00