Skip to content

🍒 Static analyzer cherrypicks #8193

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

Merged

Conversation

haoNoQ
Copy link

@haoNoQ haoNoQ commented Feb 14, 2024

More fixes for WebKit checkers.

…on call. (llvm#81400)

This PR makes alpha.webkit.UncountedCallArgsChecker eplicitly check the
safety of the object argument in a member function call. It also removes
the exemption of local variables from this checker so that each local
variable's safety is checked if it's used in a function call instead of
relying on the local variable checker to find those since local variable
checker currently has exemption for "for" and "if" statements.

(cherry picked from commit 3a49dfb)
Added checkedDowncast, uncheckedDowncast, & toString as safe functions
to call in alpha.webkit.UncountedCallArgsChecker.

(cherry picked from commit cbdc760)
This PR makes the checker not emit warning when a function is called
with a return value of another function when the return value is of type
Ref<T> or RefPtr<T>.

(cherry picked from commit 7249692)
@haoNoQ haoNoQ requested a review from rniwa February 14, 2024 22:54
@haoNoQ
Copy link
Author

haoNoQ commented Feb 14, 2024

@swift-ci please test

@haoNoQ haoNoQ merged commit a9767a1 into swiftlang:stable/20230725 Feb 15, 2024
@haoNoQ haoNoQ deleted the static-analyzer-cherrypicks-2024-03 branch February 15, 2024 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants