-
Notifications
You must be signed in to change notification settings - Fork 13.4k
A/F: `isInstance() && "No 'this' for static methods!"' in clang-tidy after commit 2c6424e691 #117005
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
Comments
@llvm/issue-subscribers-clang-static-analyzer Author: None (dyung)
Recently one of our internal tests started to see an assertion failure in clang-tidy which I bisected back to 2c6424e.
Consider the following code: struct A {
static void b();
}; When this code is run through clang-tidy that includes 2c6424e, it hits an assertion failure:
A clang-tidy built from the parent commit does not hit an assertion failure:
|
@rniwa I think this one is yours. |
Oh yeah, these checkers are definitely domain specific. |
Fixing this debug assertion in #117090. |
Then I think we should review what checkers are enabled by default in clang-tidy, because this and possibly more checkers likely needs to be disabled there. I'll have a look. |
I think all static analyzers under "WebKit" and "alpha.WebKit" can be disabled by default. |
Fixed in 9492744 |
Recently one of our internal tests started to see an assertion failure in clang-tidy which I bisected back to 2c6424e.
Consider the following code:
When this code is run through clang-tidy that includes 2c6424e, it hits an assertion failure:
A clang-tidy built from the parent commit does not hit an assertion failure:
The text was updated successfully, but these errors were encountered: