Skip to content

Enable and address extra clang-tidy checks#621

Open
jbcoe wants to merge 5 commits intomainfrom
jbcoe-clang-tidy-extra
Open

Enable and address extra clang-tidy checks#621
jbcoe wants to merge 5 commits intomainfrom
jbcoe-clang-tidy-extra

Conversation

@jbcoe
Copy link
Owner

@jbcoe jbcoe commented Feb 16, 2026

No description provided.

@jbcoe jbcoe requested a review from nbx8 February 16, 2026 01:20
@codecov
Copy link

codecov bot commented Feb 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.71%. Comparing base (6902186) to head (391a210).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #621   +/-   ##
=======================================
  Coverage   98.71%   98.71%           
=======================================
  Files          14       14           
  Lines         855      855           
  Branches       90       90           
=======================================
  Hits          844      844           
  Misses         11       11           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Disable cppcoreguidelines-missing-std-forward check as it triggers for unnamed arguments (is this a bug?)
@jbcoe jbcoe marked this pull request as ready for review February 20, 2026 14:53
@jbcoe jbcoe requested review from Copilot and removed request for nbx8 February 22, 2026 20:45
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request enables a comprehensive set of clang-tidy checks and addresses all identified issues in the test and minimal compilation files. The changes modernize code style, improve include organization, and ensure consistent use of C++ best practices.

Changes:

  • Expanded .clang-tidy configuration to include bugprone, cppcoreguidelines, misc, modernize, portability, and readability checks
  • Fixed code style issues in test files including pointer declarations, array initialization, override specifiers, and include organization
  • Added NOLINT suppressions to minimal compilation verification files

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.clang-tidy Significantly expanded enabled checks to include bugprone, cppcoreguidelines, misc, modernize, portability, and readability categories with specific reasonable exclusions
polymorphic_test.cc Reorganized includes alphabetically, added missing includes, removed unused includes, initialized std::array with braces, added override keyword
indirect_test.cc Reorganized includes alphabetically, added missing includes, removed unused includes, changed auto to auto* for pointer declarations, initialized std::array with braces
polymorphic.cc Added NOLINT comment to header include in compilation verification file
polymorphic_cxx14.cc Added NOLINT comment to header include in compilation verification file
polymorphic_no_vtable.cc Added NOLINT comment to header include in compilation verification file
indirect.cc Added NOLINT comment to header include in compilation verification file
indirect_cxx14.cc Added NOLINT comment to header include in compilation verification file

@jbcoe jbcoe requested a review from nbx8 February 26, 2026 13:29
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.

4 participants