Skip to content

clang-tidy: resolve modernize-use-integer-sign-comparison - #791

Merged
knoepfel merged 2 commits into
Framework-R-D:mainfrom
knoepfel:modernize-use-integer-sign-comparison
Aug 5, 2026
Merged

clang-tidy: resolve modernize-use-integer-sign-comparison#791
knoepfel merged 2 commits into
Framework-R-D:mainfrom
knoepfel:modernize-use-integer-sign-comparison

Conversation

@knoepfel

@knoepfel knoepfel commented Jul 30, 2026

Copy link
Copy Markdown
Member

Resolve modernize-use-integer-sign-comparison clang-tidy warnings.

  • Code quality: Resolved the modernize-use-integer-sign-comparison clang-tidy warning in the unsigned-long conversion helper, with explanatory comments and a targeted suppression for the (unsigned long)-1 comparison.
  • Documentation: Marked the clang-tidy check as addressed and recorded PR #791.

knoepfel added a commit to knoepfel/phlex that referenced this pull request Jul 30, 2026
@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: aac5f9d7-aeb9-4737-b349-bf93511e265a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The unsigned conversion helper now documents and suppresses a specific sign-comparison warning, while the clang-tidy checklist records the fix as completed and links PR 791.

Changes

Clang-tidy sign comparison fix

Layer / File(s) Summary
Unsigned sentinel comparison suppression
plugins/python/src/modulewrap.cpp
Comments explain the unsigned sentinel comparison behavior, and a targeted NOLINTNEXTLINE suppresses the clang-tidy warning.
Clang-tidy checklist tracking
docs/dev/clang-tidy-fixes-2026-04.md
The modernize-use-integer-sign-comparison item is marked complete and linked to PR 791.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related PRs

Suggested reviewers: beojan

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: fixing clang-tidy's modernize-use-integer-sign-comparison warnings.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@            Coverage Diff             @@
##             main     #791      +/-   ##
==========================================
- Coverage   84.06%   83.96%   -0.10%     
==========================================
  Files         172      172              
  Lines        7235     7235              
  Branches      850      850              
==========================================
- Hits         6082     6075       -7     
- Misses        876      880       +4     
- Partials      277      280       +3     
Flag Coverage Δ
scripts 80.09% <ø> (ø)
unittests 85.90% <ø> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
plugins/python/src/modulewrap.cpp 75.35% <ø> (-0.13%) ⬇️

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 03e2bb1...12eeecb. Read the comment docs.

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

@knoepfel
knoepfel force-pushed the modernize-use-integer-sign-comparison branch from 73ca77d to 12eeecb Compare August 3, 2026 13:37
@marcpaterno
marcpaterno self-requested a review August 5, 2026 15:21
@knoepfel
knoepfel merged commit 240a461 into Framework-R-D:main Aug 5, 2026
40 checks passed
@knoepfel
knoepfel deleted the modernize-use-integer-sign-comparison branch August 5, 2026 15:47
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.

2 participants