mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 21:21:37 +00:00
feat(tidy): add fairmq-modernize-parts-api
- Replace Parts::AtRef(i) with Parts::At(i). At() returns a reference to the MessagePtr, so a following '.' becomes '->', and a lone call gets a leading '*'. - Wrap the raw pointer of Parts::AddPart(Message*) in fair::mq::MessagePtr. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include <fairmq/tidy/DeprecatedFunctionsCheck.h>
|
||||
#include <fairmq/tidy/DeprecatedHeadersCheck.h>
|
||||
#include <fairmq/tidy/NonNamespacedTypesCheck.h>
|
||||
#include <fairmq/tidy/PartsApiCheck.h>
|
||||
|
||||
#include <clang-tidy/ClangTidyModule.h>
|
||||
#include <clang-tidy/ClangTidyModuleRegistry.h>
|
||||
@@ -27,6 +28,7 @@ class Module : public clang::tidy::ClangTidyModule
|
||||
factories.registerCheck<DeprecatedFunctionsCheck>("fairmq-modernize-deprecated-functions");
|
||||
factories.registerCheck<DeprecatedHeadersCheck>("fairmq-modernize-deprecated-headers");
|
||||
factories.registerCheck<NonNamespacedTypesCheck>("fairmq-modernize-nonnamespaced-types");
|
||||
factories.registerCheck<PartsApiCheck>("fairmq-modernize-parts-api");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user