-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[analyzer] Remove some false negatives in StackAddrEscapeChecker #125638
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
Xazax-hun
merged 39 commits into
llvm:main
from
ashfordium:flanders/123459-stack-escape-changes-ret-only
Feb 10, 2025
Merged
Changes from 31 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
0674909
wip
ashfordium 0a26f83
wip
ashfordium 3ebf222
Changes to checkPreStmt
ashfordium 17bf250
start separating checkEndFunction and checkPreStmt
ashfordium 89faf66
changes to checkEndFunction
ashfordium f225a2d
wip
ashfordium 5816e91
wip, fixed lambdas test failures
ashfordium 27c6cf8
formatting
ashfordium b73ad74
some cleanup
ashfordium 13eac11
emit returned by part added
ashfordium 129777e
add back IsConstructExpr bool in filtering
ashfordium adb78d1
wip
ashfordium 2c62960
cleanup
ashfordium e43fb34
fix objc stack-allocated-capturing block return
ashfordium 8c39d66
why does this work
ashfordium 76493d1
double up these test expectations
ashfordium 82400a7
check everytime visitor adds to escaped region
ashfordium 39df282
fix comments
ashfordium 65bee7a
formatting
ashfordium 47f3b40
remove old includes
ashfordium 6a2a01f
restore whitespace at end of file
ashfordium 30ea259
add basic int* and int return assign expr tests
ashfordium 567c8e6
return comma-separated expression
ashfordium 4d4d537
Add expected warning to copy-elision.cpp no-elide tests
ashfordium a4ad3cb
Add simple true negative test case from code review
ashfordium 8603e15
Remove temp object check in return expr checking
ashfordium 7953dba
Add newline end of file
ashfordium 51f8e2e
Add testcase: return of unknown symbol on stack
ashfordium 029d122
Add testcase of false negative returning symbolic arg
ashfordium 62ef423
Add testcase: bind rval ref to temporary
ashfordium e69ea53
Add testcases: return argptr, conditional expressions, comparison exp…
ashfordium 9d4379e
Add testscases from SemaCXX/return-stack-addr.cpp
ashfordium 1d6e363
Add lifetimebound attribute test case
ashfordium b679462
Add TODO on testcase for musttail attribute
ashfordium 571f8ee
Add false negative comments
ashfordium 6fff293
Take references to SmallVectorImpl rather than SmallVector
ashfordium 9125ed8
formatting
ashfordium bb1b70e
Add newline at end of file
ashfordium 16e3dc2
Add newline at end of file
ashfordium File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: we usually take
SmallVectorImplby reference so the function works withSmallVectorusing any size as the inline buffer.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 6fff293.