Skip to content

Merge WebKit checker improvements #8349

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

rniwa
Copy link

@rniwa rniwa commented Mar 7, 2024

Merge WebKit checker improvement PRs: llvm#82229, llvm#82291, llvm#82209, llvm#82156, llvm#82063, llvm#81829

@rniwa
Copy link
Author

rniwa commented Mar 7, 2024

@swift-ci please test

rniwa added 6 commits March 7, 2024 22:38
…llvm#81829)

Allow address-of operator (&), enum constant, and a reference to
constant as well as materializing temporqary expression and an
expression with cleanups to appear within a trivial function.
…er methods (llvm#82156)

This PR makes the checker ignore / skip calls to methods of Web Template
Platform's container types such as HashMap, HashSet, WeakHashSet,
WeakHashMap, Vector, etc...
…rtiallyDestroyed (llvm#82209)

This PR adds the support for WebKit's RefAllowingPartiallyDestroyed and
RefPtrAllowingPartiallyDestroyed, which are smart pointer types which
may be used after the destructor had started running.
…ences within trivial statements (llvm#82229)

This PR makes alpha.webkit.UncountedLocalVarsChecker ignore raw
references and pointers to a ref counted type which appears within
"trival" statements. To do this, this PR extends TrivialFunctionAnalysis
so that it can also analyze "triviality" of statements as well as that
of functions Each Visit* function is now augmented with
withCachedResult, which is responsible for looking up and updating the
cache for each Visit* functions.

As this PR dramatically improves the false positive rate of the checker,
it also deletes the code to ignore raw pointers and references within if
and for statements.
@rniwa rniwa force-pushed the merge-webkit-checker-improvements branch from a1824fb to 0e19fc4 Compare March 8, 2024 06:40
@rniwa
Copy link
Author

rniwa commented Mar 9, 2024

@swift-ci please test

@rniwa
Copy link
Author

rniwa commented Mar 11, 2024

@swift-ci Please test Windows platform

@rniwa rniwa merged commit 4560980 into swiftlang:stable/20230725 Mar 12, 2024
@rniwa rniwa deleted the merge-webkit-checker-improvements branch March 12, 2024 22:59
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.

1 participant