[PATCH] D64374: [analyzer] CastValueChecker: Model casts
Csaba Dabis via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 8 15:39:28 PDT 2019
Charusso created this revision.
Charusso added reviewers: NoQ, ravikandhadai.
Charusso added a project: clang.
Herald added subscribers: cfe-commits, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, szepet, baloghadamsoftware, xazax.hun, mgorny.
It models the LLVM casts:
- `cast<>`
- `dyn_cast<>`
- `cast_or_null<>`
- `dyn_cast_or_null<>`
It has a very basic support without checking the `classof()` function.
Repository:
rC Clang
https://reviews.llvm.org/D64374
Files:
clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt
clang/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp
clang/test/Analysis/cast-value.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64374.208525.patch
Type: text/x-patch
Size: 9917 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190708/a827b130/attachment.bin>
More information about the cfe-commits
mailing list