[PATCH] D70805: [analyzer] SValHasDescendant: Determine whether the SVal has an SVal descendant
Csaba Dabis via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 31 09:30:32 PST 2020
Charusso marked 2 inline comments as done.
Charusso added inline comments.
================
Comment at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValHasDescendant.h:55
+ bool VisitSymbolRegionValue(const SymbolRegionValue *S) {
+ return Visit(S->getRegion());
+ }
----------------
NoQ wrote:
> Arithmetic is indeed easy, but for example this part requires a much deeper justification.
Well, this is an experiment. I have checked out the Clang Tidy's matcher-writing language's framework so I believe their own language is way more better, than implementing `hasDescendant()` only. Some kind of framework would be neat, but this is what I came up with as the `hasDescendant()` is the most powerful matcher in their world.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70805/new/
https://reviews.llvm.org/D70805
More information about the cfe-commits
mailing list