Skip to content

Prepare code for clang-tidy-22#1106

Open
andrsd wants to merge 11 commits into
Open-Sn:mainfrom
andrsd:fix-clang-tidy-22-issues
Open

Prepare code for clang-tidy-22#1106
andrsd wants to merge 11 commits into
Open-Sn:mainfrom
andrsd:fix-clang-tidy-22-issues

Conversation

@andrsd

@andrsd andrsd commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

PR Checklist

  • I have updated the user guide and/or Python API documentation if necessary.

andrsd added 6 commits June 18, 2026 11:08
`std::atoi` provides no error handling at all; if the string is
completely invalid, it just returns 0, and if the number overflows,
the behavior is undefined.
clang-tidy-22 reports that as an error now.
@andrsd andrsd requested review from quocdang1998 and wdhawkins June 18, 2026 19:27
@andrsd andrsd self-assigned this Jun 18, 2026
@andrsd andrsd added the maintenance Code maintenance task label Jun 18, 2026
andrsd added 3 commits June 18, 2026 13:46
- default ctor gives truly random behavior
- ctor with seed should be used for reproducible results (for example in
  a test suite)
@andrsd andrsd force-pushed the fix-clang-tidy-22-issues branch from 4e622f0 to 7663003 Compare June 18, 2026 19:46
@andrsd

andrsd commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator Author

Personally, I would drop edc5c89 - that's adding the {/} and making it consistent.

Also bugprone-throwing-static-initialization may be something to suppress. I had to add NOLINT to almost all places - was able to patch just a few lines...

@andrsd andrsd force-pushed the fix-clang-tidy-22-issues branch from 7663003 to 92ceb4a Compare June 19, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Code maintenance task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant