Repository navigation
Conversation
Enable whole clang-analyzer, bugprone, cert, concurrency, misc, performance, and portability families with named exclusions. Fix the actionable findings across C/C++ bindings, tests, examples, and benchmarks, and allow the clang-analyzer-optin namespace in typos.
# Conflicts: # bindings/c/src/mpmc_shm.c # bindings/cpp/include/mpmc/shm_fluent.hpp
Rename the ping-pong diagnostic buffers so they no longer shadow the mpmc_shm_status error variable, and fix the related review findings: - qualify control_region errno formatting to the free large_compare::error_text so shm_open/ftruncate/mmap failures keep their strerror text instead of resolving to the member that reads the control region - replace std::error_code-based error_text with a direct strerror_r helper in stats.h and bench_common.h, handling the GNU and XSI signatures explicitly - flush stdout and stderr before _Exit in the RESP and NATS comparator die() paths so buffered header lines are not lost
Enable readability-implicit-bool-conversion, make-member-function-const, convert-member-functions-to-static, avoid-nested-conditional-operator, and use-anyofallof. The implicit bool conversions are explicit comparisons or `? 1 : 0` returns in the shared C headers. The constant weak argument of the atomic compare-exchange builtins keeps a line-local NOLINT because C11 has no bool literal and `_Bool` cannot be named in both C and C++. The reported member functions are const or static, the nested unit/kind ternaries became if/else chains or a kind_name helper, and the two needle loops use std::ranges::all_of with the same predicates. readability-function-cognitive-complexity stays disabled because the generated kernel.inc contains one finding that only the kernel generator can change.
Render the queue parameter as queue, virtual registers as reg0..regN, one register declaration per line, guarded-goto branches with an explicit fall-through, and the path-derived MPMC_DETAIL_KERNEL_INC guard. Wrap each entry point in a NOLINTBEGIN/NOLINTEND pair so the wrapped ABI parameter list stays audited. Update the kernel digest, the stripped-diagnostic expectations, and the documentation.
Rename the 580 readability-identifier-length sites across the C and C++ API, tests, benchmarks, examples, and verification harnesses; split the remaining multi-declarations; and add stable guards plus audit notes for llvm-header-guard. Update the clang-tidy configuration, the reviewed include-cleaner line map, and the quality documentation. readability-function-cognitive-complexity remains disabled because 136 pre-existing functions still exceed the threshold.
Enable readability-function-cognitive-complexity and split the C ABI and fluent drain paths into named, behavior-preserving helpers.
Split long scenario bodies and callbacks into named verification helpers; behavior and ordering are unchanged.
Enable 36 cppcoreguidelines checks, fix their findings, and add one active probe per enabled check to tools/clang_tidy.py. Keep avoid-goto, avoid-magic-numbers, pro-bounds-pointer-arithmetic, and pro-type-vararg deferred with measured counts and documented reasons.
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
Use the declared non-Apple locals in mpmc_shm.c, raise the kernel_fifo unwind bound to the smallest passing value, add platform/toolchain-keyed include-cleaner baselines with Linux diagnostics taken from the hosted log, source tools/quality/toolchains.env in the macOS Rust step, and accept absent/null SARIF status.errors as empty in the CodeQL gate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Strengthens the repository-wide quality gates and fixes every finding they surface.
105 commits, 289 files.
Pinned tooling
tools/quality/toolchains.envrecords exact versions for clang, clang-tidy,clang-format, GCC, Python, Homebrew LLVM, Apple clang, and the .NET SDK, and
each CI step calls
require_versionso a silent patch bump fails the jobexplicitly instead of drifting.
tools/quality/requirements.in/requirements.txt(hash-pinned),tools/quality/package.json/package-lock.json, andtools/quality/install_tools.shgive one reviewed source of truth for thelint and analysis stack;
tools/quality.shis the local entry point thatruns the same checks CI runs.
clang-tidy
modernizefamily and thegooglefamily, plusreadability(identifier naming, declaration/definition readability,header guards, judgment checks),
cppcoreguidelinesfor the fixed subset,and the mechanical checks, with exceptions documented in
tools/quality/clang-tidy-tests.yamland the docs.tools/clang_tidy.pygains a self-test that proves checks are actuallyactive, so a silently disabled check fails the gate.
CI and CodeQL gates
Qualityworkflow: source/config hygiene matrix on Linux x86_64,Linux arm64, and macOS 15; Markdown, formatting, embedded-Python and
documentation checks; fail-closed guard scripts
(
tools/check_ci_guards.py,tools/check_config.py,tools/check_embedded_python.py,tools/check_docs.py).CodeQLworkflow extended to require zero open alerts viatools/check_codeql_alerts.py, so a new alert fails the job instead ofbeing ignored.
ci.yml,macos.yml, andrelease.ymlupdated to install and verify thepinned toolchains and to run the new gates; Bazelisk install action hardened.
Dependency audits
.github/dependabot.ymlcovers GitHub Actions (both roots), the Rustbindings/examples/bench workspaces, npm and pip for
tools/quality, andNuGet for the C# bindings, each with a 7-day cooldown.
Cross-language fixes
goto-free kernel state dispatch, type-safe formatting instead ofvarargs,
std::span-based views instead of pointer arithmetic, named magicnumbers, cognitive-complexity decomposition across production code, tests,
examples, benchmarks, and the CBMC harnesses, and generated kernel
identifiers/guards made readable.
bench_summary,summarize_large_compare,release, andclean_shm_sidecarsbrought under the new gates.new checks.
Test plan
CIgreen on the pushed headmacOS CIgreen on the pushed headQualitygreen on the pushed headCodeQLgreen on the pushed head