Commit Graph

2 Commits

Author SHA1 Message Date
Claude
64ec4d7afa test(tidy): support check options and checks without a fix
- RunCheck.cmake passes a `// TIDY-CONFIG: <yaml>` line of the input to
  --config, e.g. to set check options.
- ClangdCheck.py requires a quick fix only if the input has CHECK-FIXES
  lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 09:28:53 +00:00
Claude
661fc96fbb feat(tidy): add fairmq-clangd for editor integration
- Add the option BUILD_TIDY_CLANGD (default OFF). It builds
  fairmq-clangd from clangdMain plus the fairmq-* module.
- clangd cannot load plugins, but creates its clang-tidy checks from the
  same registry. Thus the checks run on the AST that clangd builds anyway,
  and editors show their fixes as quick fixes.
- Point clangd to the resource directory of the LLVM installation it was
  built with, unless --resource-dir is given.
- Test each check over LSP with test/tidy/ClangdCheck.py: open the input,
  expect a diagnostic of the check and a quick fix for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 09:26:45 +00:00