Skip to content

crypto: the Linux lint's findings in three tests - #6

Merged
pinhopro merged 1 commit into
mainfrom
fix/linux-lint
Nov 20, 2026
Merged

pinhopro merged 1 commit into
mainfrom
fix/linux-lint

Conversation

@pinhopro

Copy link
Copy Markdown
Contributor

The single final CI on main ran the lint on Linux, where three crypto tests showed clang-tidy findings the macOS lint never sees:

  • test/box_sodium_test.cpp:86-87 and test/secretbox_sodium_test.cpp:62-63, bugprone-branch-clone: on a 64-bit Linux libsodium both branches of the sizeof(std::size_t) == 8 ? ... : ... static_assert read alike. Each is now two static_asserts joined with ||, saying the same.
  • test/constant_time/paths.hpp:525 and :570, readability-trailing-comma (this header is linted only on Linux).

Tests only; no library change. box_sodium and secretbox_sodium pass natively; clang-format clean.

🤖 Generated with Claude Code

…sage limits of box and secretbox as two static_asserts (bugprone-branch-clone on Linux, where both branches read alike), trailing commas in two of paths.hpp's initializer lists
@pinhopro
pinhopro merged commit 37c7e38 into main Nov 20, 2026
3 checks passed
@pinhopro
pinhopro deleted the fix/linux-lint branch November 20, 2026 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant