-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[clang-tidy][NFC] Refactor fuchsia-multiple-inheritance
#171059
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
[clang-tidy][NFC] Refactor fuchsia-multiple-inheritance
#171059
Conversation
|
✅ With the latest revision this PR passed the C/C++ code formatter. |
At the call site, it was just as much code to call this function as it is to inline it. This also avoids an out parameter.
Now all the interface criteria is in one place.
9284d78 to
b6017d5
Compare
clang-tools-extra/clang-tidy/fuchsia/MultipleInheritanceCheck.cpp
Outdated
Show resolved
Hide resolved
clang-tools-extra/clang-tidy/fuchsia/MultipleInheritanceCheck.cpp
Outdated
Show resolved
Hide resolved
vbvictor
left a comment
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.
So this check now only located in "fuchsia" module.
I think we could have a regular misc- check for it instead, so more users can discover and use it.
Maybe open another "rename" issue for this check? Update: see #171136 |
I've structured this PR as a series of independent commits, so it's probably easiest to review commit-by-commit. There's some subjectivity involved with refactoring, so if you think any of the changes is a downgrade, I'm happy to discuss it.