-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[clang-tidy] Rename 'cert-dcl50-cpp' to 'modernize-avoid-variadic-functions' #157737
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.. title:: clang-tidy - modernize-avoid-variadic-functions | ||
|
||
modernize-avoid-variadic-functions | ||
================================== | ||
|
||
Find all function definitions (but not declarations) of C-style variadic | ||
functions. | ||
|
||
Instead of C-style variadic functions, C++ function parameter pack should be | ||
used. | ||
|
||
|
||
References | ||
---------- | ||
|
||
This check corresponds to the CERT C++ Coding Standard rule | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It sounds strange to put CERT references here in a guideline-agnostic check, like I wrote above I think this link fits better in the CERT docs. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've seen that such references are placed in many current checks I assume almost every general check that has There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd place link to CERT in both docs (hoping it won't become outdated) |
||
`DCL50-CPP. Do not define a C-style variadic function | ||
<https://www.securecoding.cert.org/confluence/display/cplusplus/DCL50-CPP.+Do+not+define+a+C-style+variadic+function>`_. |
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 realize now that the link to the CERT guidelines is probably worth keeping. A bit unfortunate however with the automatic jump to the modernize page, but I think that's a separate issue tracked in another ticket.
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'd do this in current PR same as hicpp.