[PATCH] D103319: [analyzer] Use Optional as a return type of StoreManager::castRegion
Denys Petrov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 28 07:26:42 PDT 2021
ASDenysPetrov created this revision.
ASDenysPetrov added reviewers: steakhal, NoQ.
ASDenysPetrov added a project: clang.
Herald added subscribers: manas, martong, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, szepet, baloghadamsoftware, xazax.hun.
ASDenysPetrov requested review of this revision.
Herald added a subscriber: cfe-commits.
Make StoreManager::castRegion function usage safier. Replace `const MemRegion *` with `Optional<const MemRegion *>`. Simplified one of related test cases due to suggestions in D101635 <https://reviews.llvm.org/D101635>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D103319
Files:
clang/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h
clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
clang/lib/StaticAnalyzer/Core/Store.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103319.348514.patch
Type: text/x-patch
Size: 4368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210528/19afb97f/attachment.bin>
More information about the cfe-commits
mailing list