-
Notifications
You must be signed in to change notification settings - Fork 5
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
refactor: Fix clang-tidy warnings in Py_utils
.
#95
Conversation
WalkthroughThe pull request introduces several modifications primarily to the Changes
Assessment against linked issues
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Co-authored-by: kirkrodrigues <[email protected]>
…lp-ffi-py into clang-tidy-utils
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
lint-tasks.yml
(1 hunks)
🔇 Additional comments (1)
lint-tasks.yml (1)
Line range hint 41-43
: Re-enable clang-tidy tasks after fixes.
The PR aims to fix clang-tidy warnings, but the tasks are currently disabled. Consider re-enabling these tasks once the fixes are confirmed to work:
cpp-check:
cmds:
- task: "cpp-format-check"
- # TODO: re-enable this once all clang-tidy has been fixed
- # - task: "cpp-static-check"
+ - task: "cpp-static-check"
cpp-fix:
cmds:
- task: "cpp-format-fix"
- # TODO: re-enable this once all clang-tidy has been fixed
- # - task: "cpp-static-fix"
+ - task: "cpp-static-fix"
Let's verify if there are any remaining clang-tidy warnings:
Also applies to: 52-54
Co-authored-by: kirkrodrigues <[email protected]>
Description
This is one of PRs to resolve #96
This PR fixes clang-tidy warnings in
Py_utils
under clang-tidy 19 using the latest clang-tidy config from https://github.com/y-scope/yscope-dev-utils/blob/main/lint-configs/.clang-tidyOne noticeable change is that we introduced a
consteval
function to wrapconstexpr
string view to resolve this warning: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/suspicious-stringview-data-usage.html. We might also need this for other CLP reposValidation performed
Py_utils
Summary by CodeRabbit
Summary by CodeRabbit
New Features
get_c_str_from_constexpr_string_view
andparse_py_string_as_string_view
.Improvements
Configuration