Skip to content

security: clang-tidy config and CI job #308

Closed

Description

@homer6

A .clang-tidy with cppcoreguidelines-*, cert-*, bugprone-* (and selected others), run on tests/ and the snippets; fix or justify each finding (NOLINT with a reason). A CI job and a local tools/ command.

Part of #286. PR into dev-0.5, from a feature branch in its own worktree.

Activity

  1. self-assigned this
    on Nov 3, 2026
  2. homer6 commented on Nov 3, 2026

    @homer6
    OwnerAuthor

    Delivered in #332.

    How it was solved

    • .clang-tidy profile (Core Guidelines, CERT, bugprone; every finding an error) plus tests/.clang-tidy for GoogleTest noise.
    • tools/run_clang_tidy.sh and a clang-tidy job in linux.yml.
    • Each finding in tests/security/ and fuzz/ fixed, or kept with NOLINT(check): reason.

    How to test

    • cmake --preset clang-22 && cmake --build build/clang-22 --target gtest gtest_main
    • tools/run_clang_tidy.sh build/clang-22 prints "no findings"
    • ctest --test-dir build/clang-22 -R 'Security|Fuzz' passes
    • Run linux.yml: the clang-tidy job is green

    Re-open if review rejects the PR or validation surfaces a regression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

securityv0.5.0 security work

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions