This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Model calls returning optionals
ClosedPublic

Authored by sgatev on Jun 1 2022, 1:44 AM.

Details

Diff Detail

Unit TestsFailed

Event Timeline

sgatev created this revision.Jun 1 2022, 1:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2022, 1:44 AM
sgatev requested review of this revision.Jun 1 2022, 1:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2022, 1:44 AM
ymandel accepted this revision.Jun 1 2022, 5:34 AM

Thanks!

This revision is now accepted and ready to land.Jun 1 2022, 5:34 AM
xazax.hun accepted this revision.Jun 1 2022, 1:12 PM
xazax.hun added inline comments.
clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp
166

Does alias refers to a type alias in this case? I first parsed this as if this has something to do with pointers being aliased. I wonder if possiblyOptionalAliasType would read better (considering the optional type its own alias). Feel free to ignore.

sgatev updated this revision to Diff 434000.Jun 3 2022, 4:58 AM

Address comments.

sgatev marked an inline comment as done.Jun 3 2022, 6:34 AM
sgatev added inline comments.
clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp
166

I opted for hasOptionalOrAliasType.

This revision was landed with ongoing or failed builds.Jun 3 2022, 6:39 AM
This revision was automatically updated to reflect the committed changes.
sgatev marked an inline comment as done.