This is an archive of the discontinued LLVM Phabricator instance.

[analyzer][NFC] Use `SValVisitor` instead of explicit helper functions
ClosedPublic

Authored by ASDenysPetrov on Jul 18 2022, 10:40 AM.

Details

Summary

Get rid of explicit function splitting in favor of specifically designed Visitor.
Move logic from a family of evalCastKind and evalCastSubKind helper functions to SValVisitor.

Diff Detail

Event Timeline

ASDenysPetrov created this revision.Jul 18 2022, 10:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2022, 10:40 AM
ASDenysPetrov requested review of this revision.Jul 18 2022, 10:40 AM

Why don't you use the SValVisitor instead?

@steakhal Finally fulfilled you suggestion :-)

martong accepted this revision.Jul 19 2022, 7:49 AM

Thanks! LGTM!

This revision is now accepted and ready to land.Jul 19 2022, 7:49 AM