-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Add ignoringParenImpCasts
in hasAnyArgument
fix#75754
#87268
Add ignoringParenImpCasts
in hasAnyArgument
fix#75754
#87268
Conversation
@llvm/pr-subscribers-clang-tidy @llvm/pr-subscribers-clang-tools-extra Author: None (komalverma04) ChangesMaintaining Consistency in
|
✅ With the latest revision this PR passed the C/C++ code formatter. |
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.
LGTM, run clang-format before commit,
and fix rest of tests
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.
Fix tests & clang-format
Okay, will do that. Thank you. |
4395604
to
f72e3c4
Compare
9da778e
to
d8503a3
Compare
Maintaining Consistency in
hasAnyArgument()
andhasArgument()
Matchers in Clang AST MatchersThe
hasArgument()
matcher already ignores implicit casts and parentheses, but thehasAnyArgument()
matcher does not. To ensure consistency, we need to explicitly useignoringParenImpCasts()
to handle cases where there might be implicit casts or parentheses around the argument in the Clang AST match.The code changes made are as follows:
To ignore any implicit casts and parenthesis around the argument type S *
Fixes #75754