Repository navigation
fix: label review suggestions that only clang-format changes as clang-format - #588
Merged
Merged
Conversation
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 44 minutes. View limit details
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. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #588 +/- ##
=======================================
Coverage 99.63% 99.63%
=======================================
Files 29 29
Lines 8329 8329
=======================================
Hits 8299 8299
Misses 30 30 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
2bndy5
approved these changes
Nov 17, 2026
2bndy5
left a comment
Collaborator
There was a problem hiding this comment.
uncaught since unifying clang tools' output.
3 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found while testing v2.0.0-rc.26 with cpp-linter-action v3 on a real PR (cpp-linter/test-cpp-linter-action#80).
A PR review suggestion comes from the combined clang-format + clang-tidy patch. When no clang-tidy note fixes a line of the hunk, the change is clang-format's, but the comment is headed
### clang-tidy suggestion. On that PR, re-indenting a comment line incap/many.cpp(pure clang-format) was posted as:When clang-tidy didn't run on the file at all (
tidy_adviceisNone), the same kind of suggestion had no heading.Changes
TidyAdvice::get_suggestion_help()returns### clang-format suggestionwhen no note in the hunk has a fix (instead of### clang-tidy suggestion).FileObj::get_suggestions()uses the same heading when the file has no clang-tidy advice, instead of none.### clang-tidy diagnostic(s)and the list of notes (unchanged).Tests
suggestion_help_with_and_without_fixesnow checks the exact heading for a hunk without clang-tidy fixes.cargo nextest run -p cpp-linter --features bin: 186 passed, 4 skipped.cargo clippy -p cpp-linter --features bin --all-targets -- -D warnings,cargo fmt --checkand cspell are clean.