Skip to content
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

Ruby: Track types in data flow #18315

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Dec 18, 2024

Extracted from #15118.

This PR implements tracking of types in data flow for Ruby, which may help reduce false-positive results when type incompatibility can be established. DCA looks good; performance is (mostly) maintained while we are able to eliminate some false positives.

*
* the SSA definition for `c` is introduced by matching on `C`.
*/
predicate asModulePattern(Ssa::WriteDefinition def, Module m) {

Check warning

Code scanning / CodeQL

Predicates starting with "get" or "as" should return a value Warning

This predicate starts with 'as' but does not return a value.
@hvitved hvitved force-pushed the ruby/dataflow-types branch 7 times, most recently from cc7c7dd to 6ffd2b6 Compare December 20, 2024 09:51
@hvitved hvitved force-pushed the ruby/dataflow-types branch from 8996662 to 79cb62f Compare December 20, 2024 10:09
@hvitved hvitved marked this pull request as ready for review December 20, 2024 10:52
@hvitved hvitved requested a review from a team as a code owner December 20, 2024 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant