feat(tidy): add fairmq-modernize-deprecated-headers

- Report includes of the ten deprecated headers, e.g. <FairMQDevice.h>
  or <fairmq/FairMQDevice.h>, and replace them with the successor, e.g.
  <fairmq/Device.h>. Today these headers only emit a #pragma warning.
- Keep the quote style of the include.

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 e32bee2533
commit d4a3c06c7b
5 changed files with 173 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
* copied verbatim in the file "LICENSE" *
********************************************************************************/
#include <fairmq/tidy/DeprecatedHeadersCheck.h>
#include <fairmq/tidy/NonNamespacedTypesCheck.h>
#include <clang-tidy/ClangTidyModule.h>
@@ -20,6 +21,7 @@ class Module : public clang::tidy::ClangTidyModule
public:
void addCheckFactories(clang::tidy::ClangTidyCheckFactories& factories) override
{
factories.registerCheck<DeprecatedHeadersCheck>("fairmq-modernize-deprecated-headers");
factories.registerCheck<NonNamespacedTypesCheck>("fairmq-modernize-nonnamespaced-types");
}
};