This is an archive of the discontinued LLVM Phabricator instance.

[clang][dataflow] Modify `transfer` in `DataflowModel` to take `CFGElement` as input instead of `Stmt`.
ClosedPublic

Authored by wyt on Sep 15 2022, 3:44 AM.

Details

Summary

To keep API of transfer functions consistent.

The single use of this transfer function in ChromiumCheckModel is also updated.

Diff Detail

Event Timeline

wyt created this revision.Sep 15 2022, 3:44 AM
Herald added a project: Restricted Project. · View Herald Transcript
wyt requested review of this revision.Sep 15 2022, 3:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 15 2022, 3:44 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
sgatev accepted this revision.Sep 15 2022, 4:01 AM
sgatev added inline comments.
clang/include/clang/Analysis/FlowSensitive/DataflowAnalysis.h
197

In DataflowAnalysis we use the name Element. Can we use the same here too?

This revision is now accepted and ready to land.Sep 15 2022, 4:01 AM
wyt updated this revision to Diff 460368.Sep 15 2022, 4:44 AM

Address comment.

wyt marked an inline comment as done.Sep 15 2022, 4:44 AM
gribozavr2 accepted this revision.Sep 15 2022, 4:07 PM
This revision was landed with ongoing or failed builds.Sep 19 2022, 11:40 AM
This revision was automatically updated to reflect the committed changes.