This is an archive of the discontinued LLVM Phabricator instance.

[analyzer][NFC] Change return value of StoreManager::attemptDownCast function from SVal to Optional<SVal>
ClosedPublic

Authored by ASDenysPetrov on Dec 16 2021, 8:57 AM.

Details

Summary

Refactor return value of StoreManager::attemptDownCast function by removing the last parameter bool &Failed and replace the return value SVal with Optional<SVal>. Make the function consistent with the family of evalDerivedToBase by renaming it to evalBaseToDerived. Align the code on the call side with these changes.

Diff Detail

Unit TestsFailed