-
Notifications
You must be signed in to change notification settings - Fork 29
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
Create rule S7121 Calls to c_str() should not implicitly recreate strings or string_views CPP-3435 #4391
Conversation
c_str
CPP-3435
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.
I think the rule should also cover std::string_view
as we would avoid recomuptng length. And title, and initial spec should be more focused.
I also make the std::string_view
.
c_str
CPP-3435558d4f8
to
7ea481e
Compare
Co-authored-by: Loïc Joly <[email protected]>
Quality Gate passed for 'rspec-frontend'Issues Measures |
Quality Gate passed for 'rspec-tools'Issues Measures |
You can preview this rule here (updated a few minutes after each push).
Review
A dedicated reviewer checked the rule description successfully for: