-
-
Notifications
You must be signed in to change notification settings - Fork 10
fix: treat clang-format --lines as inclusive ranges
#175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ref cpp-linter/cpp-linter-action#388 See also official [LLVM python script][llvm-py] about their use of `--lines` values. I updated some of the test assets to correspond with these changes.. [llvm-py]: https://github.com/llvm/llvm-project/blob/14784225cf028af54dda350114d5495ab94d572e/clang/tools/clang-format/git-clang-format#L633
WalkthroughAdjusted inclusive handling of line ranges and test expectations: clarified clang-format line-range comment; changed range consolidation to stop extending end by +1; updated multiple test JSON files and a unit test to reflect the new inclusive range boundaries. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (21)
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #175 +/- ##
=======================================
Coverage 98.26% 98.26%
=======================================
Files 23 23
Lines 1897 1897
=======================================
Hits 1864 1864
Misses 33 33 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Apparently, this is already being done in cpp-linter-rs. |
|
I looked at the history of the LLVM py script... The |
ref cpp-linter/cpp-linter-action#388
See also official LLVM python script about their use of
--linesvalues.I updated some of the test assets to correspond with these changes..
Summary by CodeRabbit
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.