Skip to content

Conversation

@Skylion007
Copy link
Collaborator

Description

  • Adds rule and proper suppression for clang-tidy prefer-member-initializer
  • Adds optin analyzer rule to ensure we do not introduce any poorly padded structs.

Suggested changelog entry:

* Enable cppcoreguidelines-prefer-member-initializer and clang-analyzer-optin.performance.Padding clang-tidy checks

@Skylion007 Skylion007 requested review from henryiii and rwgk February 10, 2022 16:54
@rwgk
Copy link
Collaborator

rwgk commented Feb 10, 2022

The appveyor build is still stuck. But I've never seen it actually-running-and-failing when the GHA succeeded (not a single time). ... Merging!

@rwgk rwgk merged commit d6c66d2 into pybind:master Feb 10, 2022
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Feb 10, 2022
? std::vector<ssize_t>(view->strides, view->strides + view->ndim)
: detail::c_strides({view->shape, view->shape + view->ndim}, view->itemsize),
(view->readonly != 0)) {
// NOLINTNEXTLINE(cppcoreguidelines-prefer-member-initializer)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these suppressed instead of fixed?

@henryiii henryiii removed the needs changelog Possibly needs a changelog entry label Mar 29, 2022
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.

3 participants