- Implement the checks as a clang-tidy module (object library fairmq-tidy-module) instead of a standalone LibTooling program. - Build fairmq-tidy from clangTidyMain plus the module. It gets all clang-tidy features: --fix, --export-fixes, .clang-tidy files, NOLINT, header filter, and the upstream checks on the same parse. - Without a --checks option, add fairmq-* to the configured checks. - Point the driver to the resource directory of the LLVM installation it was built with, so it finds the Clang builtin headers from any install location. The -I hint in fairmq_target_tidy() is no longer necessary. - Add the include directories of LLVM and Clang. The old target compiled only where they are in /usr/include. - Port fairmq-modernize-nonnamespaced-types. Match deprecated global aliases into fair::mq instead of the name prefix "FairMQ": this also finds e.g. InputMsgCallback and skips aliases that are not deprecated. Match only the TypedefTypeLoc, so each use is reported once. BREAKING CHANGE: fairmq-tidy takes the options of clang-tidy and reads .clang-tidy files. With no .clang-tidy file it now also runs the default clang-tidy checks (clang-diagnostic-*, clang-analyzer-*). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FairMQ
C++ message queuing library and framework for large-scale data processing.
Documentation: https://fairrootgroup.github.io/FairMQ/
FairMQ helps to build data processing workflows of particle physics experiments from many small processes. Each process is a device with a state machine. Devices send messages to each other through channels with the socket patterns of ZeroMQ (push/pull, pub/sub, req/rep, pair). Each channel uses a transport:
zeromqsends the messages through ZeroMQ sockets, also to other hosts.shmemputs the payload into shared memory and sends only a small header, so devices on one host exchange data without a copy.
Plugins configure and control the devices. FairMQ was developed in the context of FairRoot.
Install
With Spack:
spack install fairmq
From source:
git clone https://github.com/FairRootGroup/FairMQ fairmq_source
cmake -S fairmq_source -B fairmq_build -GNinja -DCMAKE_BUILD_TYPE=Release
cmake --build fairmq_build
cmake --install fairmq_build --prefix $(pwd)/fairmq_install
The install page lists the dependencies, the build options and how to run the tests.
Get started
- Your first device: write, build and run a sampler and a sink.
- Use FairMQ in a CMake project:
find_package(FairMQ)and the targetFairMQ::FairMQ. - Examples: the programs in
examples/, with their topologies. - API reference and source browser.
Releases and support
Find all releases on GitHub and the changes in the release notes. Report bugs and ask questions in the issues. Read Contributing before you open a pull request.
License
FairMQ is free software under the LGPL-3.0. See COPYRIGHT and how to cite FairMQ.