This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Refactor StoreSiteFinder and extract DefaultStoreHandler
ClosedPublic

Authored by vsavchenko on Jun 3 2021, 1:27 PM.

Details

Summary

After this patch, custom StoreHandlers will also work as expected.

Diff Detail

Event Timeline

vsavchenko created this revision.Jun 3 2021, 1:27 PM
vsavchenko requested review of this revision.Jun 3 2021, 1:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 3 2021, 1:27 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
NoQ added inline comments.Jun 10 2021, 11:48 PM
clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
2047

WDYM?

Also maybe downscope it?

2063

Isn't DS always null here?

vsavchenko added inline comments.Jun 11 2021, 1:35 AM
clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
2047

I meant that the only client for it is undef value printer and we can probably get rid of it altogether, or at least what I did in the very last patch from the stack.

2063

Duh! Yes!
Good catch, I'll remove DS declaration!

vsavchenko marked 2 inline comments as done.

Fix review remarks

NoQ accepted this revision.Jun 14 2021, 8:49 PM

Great, thanks!

This revision is now accepted and ready to land.Jun 14 2021, 8:49 PM