Skip to content

🍒 Static analyzer cherrypicks #8198

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 15, 2024

More fixes for WebKit checkers and scan-build.

rniwa and others added 2 commits February 14, 2024 20:16
… calls. (llvm#81808)

This PR introduces the concept of a "trivial function" which applies to
a function that only calls other trivial functions and contain literals
and expressions that don't result in heap mutations (specifically it
does not call deref). This is implemented using ConstStmtVisitor and
checking each statement and expression's trivialness.

This PR also introduces the concept of a "ingleton function", which is a
static member function or a free standing function which ends with the
suffix "singleton". Such a function's return value is understood to be
safe to call any function with.

(cherry picked from commit a7982d5)
That's a new GUI bell-and-whistle in the index.html page.

(cherry picked from commit dcbb574)
@haoNoQ haoNoQ requested a review from rniwa February 15, 2024 04:18
@haoNoQ
Copy link
Author

haoNoQ commented Feb 15, 2024

@swift-ci please test

Copy link

@rniwa rniwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for merging these!

@haoNoQ
Copy link
Author

haoNoQ commented Feb 15, 2024

@swift-ci please test

@haoNoQ haoNoQ merged commit 0937081 into swiftlang:stable/20230725 Feb 15, 2024
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.

3 participants