test(tidy): check the fairmq-* checks with FileCheck

- Add test/tidy/RunCheck.cmake, a small check_clang_tidy.py: run one
  check with --fix on a copy of the input, then match the diagnostics
  against CHECK-MESSAGES lines and the fixed file against CHECK-FIXES
  lines. Any other warning or error fails the test.
- Register one test per test/tidy/fairmq-*.cxx file. The inputs use the
  real FairMQ headers via the usage requirements of the FairMQ target.
- Skip the tests with a warning if FileCheck is not found.
- Add the test for fairmq-modernize-nonnamespaced-types.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-11-09 22:39:03 +00:00
parent cbcd0d3324
commit e32bee2533
4 changed files with 164 additions and 0 deletions

View File

@@ -329,3 +329,7 @@ add_testsuite(MemoryResources
${definitions}
${environment}
)
if(BUILD_TIDY_TOOL)
add_subdirectory(tidy)
endif()