[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
Thu Nov 28 01:42:45 PST 2019


Charusso created this revision.
Charusso added a reviewer: NoQ.
Charusso added a project: clang.
Herald added subscribers: cfe-commits, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, szepet, baloghadamsoftware, xazax.hun.
Charusso added a parent revision: D70411: [analyzer] CERT: StrChecker: 31.c.

This relies on the `SValVisitor` and behaves something similar to the
Clang Tidy's `hasDescendant()`.


Repository:
  rC Clang

https://reviews.llvm.org/D70805

Files:
  clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValHasDescendant.h
  clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp
  clang/lib/StaticAnalyzer/Checkers/cert/StrChecker.cpp
  clang/test/Analysis/cert/str31-c-fp-suppression.cpp
  clang/test/Analysis/sval-has-desc.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70805.231372.patch
Type: text/x-patch
Size: 8916 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191128/1956fbcc/attachment-0001.bin>


More information about the cfe-commits mailing list