Skip to content

Clang tidy ci - #89

Merged
PierreMarchand20 merged 3 commits into
mainfrom
clang-tidy-ci
Sep 29, 2026
Merged

PierreMarchand20 merged 3 commits into
mainfrom
clang-tidy-ci

Conversation

@PierreMarchand20

Copy link
Copy Markdown
Member

No description provided.

@codecov

codecov Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.08%. Comparing base (658d8f0) to head (7a9d4ff).
⚠️ Report is 65 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #89      +/-   ##
==========================================
+ Coverage   97.19%   98.08%   +0.88%     
==========================================
  Files          80      183     +103     
  Lines        5132    10006    +4874     
==========================================
+ Hits         4988     9814    +4826     
- Misses        144      192      +48     

☔ View full report in Codecov by Harness.
📢 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.

PierreMarchand20 and others added 3 commits September 29, 2026 11:14
- solvers/ddm.hpp: add explicit `default: break;` to the
  schwarz_method / krylov_method switches
  (bugprone-switch-missing-default-case; behavior unchanged,
  excluded from coverage: no test sets an unhandled method), and take
  add_infos/set_infos strings by const reference.
- solvers/utility.hpp: move LocalLowRankGenerator's shared_ptr sink
  parameter.
- examples/compression_comparison.cpp: reserve vectors before
  push_back loops (performance-inefficient-vector-operation).
- clustering/tree_builder.hpp: compute
  number_of_children^depth_of_partition as an exact integer instead of
  comparing against and truncating std::pow's double result.
- clustering/partitioning.hpp: use std::distance for iterator offsets
  stored as int.

The solver findings only show with HPDDM available: without it these
TUs fail to compile and clang-tidy skips them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- .clang-tidy: every finding is an error except branch-clone
  (clang-tidy 22 false positive in tree_builder.hpp), exception-escape
  (only main() in tests/examples) and
  implicit-widening-of-multiplication-result (defensive int index
  products); these are still reported.
- Disable performance-enum-size: shrinking enums buys nothing here.
- narrowing-conversions: ignore conversions from size/difference types
  and integer -> floating point; htool uses int sizes by design.
- ExcludeHeaderFilterRegex needs clang-tidy >= 19, not 17.
- CI: run `make tidy` on the ubuntu_clang_openmpi job only (the
  htool_testing_environments images now ship clang-tidy-19).
- Update CHANGELOG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces the pre-release commit 27d20aa, whose history was rewritten
before the release; v2.4.1 differs in headers only by also silencing
-Wold-style-cast in HPDDM.hpp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@PierreMarchand20
PierreMarchand20 merged commit 46f0ad3 into main Sep 29, 2026
11 checks passed
@PierreMarchand20
PierreMarchand20 deleted the clang-tidy-ci branch September 29, 2026 14:05
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