Skip to content

Static analyzer cherry picks #22 #2820

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

Conversation

SavchenkoValeriy
Copy link

Clang Static Analyzer is traditionally kept reasonably fresh on stable branches through continuous cherry-picking.

When property is declared in a superclass (or in a protocol),
it still can be of CXXRecord type and Sema could've already
generated a body for us.  This patch joins two branches and
two ways of acquiring IVar in order to reuse the existing code.
And prevent us from generating l-value to r-value casts for
C++ types.

rdar://67416721

Differential Revision: https://reviews.llvm.org/D99194

(cherry picked from commit 4821c15)
It is common to zero-initialize not only scalar variables,
but also structs.  This is also defensive programming and
we shouldn't complain about that.

rdar://34122265

Differential Revision: https://reviews.llvm.org/D99262

(cherry picked from commit 9f0d8ba)
rdar://68954187

Differential Revision: https://reviews.llvm.org/D99181

(cherry picked from commit 4b958dd)
This patch supports std::data and std::addressof functions.

rdar://73463300

Differential Revision: https://reviews.llvm.org/D99260

(cherry picked from commit 663ac91)
@SavchenkoValeriy SavchenkoValeriy requested a review from haoNoQ April 9, 2021 14:49
@SavchenkoValeriy
Copy link
Author

@swift-ci test

@SavchenkoValeriy SavchenkoValeriy merged commit 9255c51 into swiftlang:apple/stable/20210107 Apr 12, 2021
@SavchenkoValeriy SavchenkoValeriy deleted the april_analyzer_cherry_picks_2 branch April 12, 2021 09:50
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