[PATCH] D84979: [analyzer][NFC] Refine CStringLength modeling API

Balázs Benics via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 30 12:56:32 PDT 2020


steakhal created this revision.
steakhal added reviewers: NoQ, Szelethus, xazax.hun, baloghadamsoftware, vsavchenko, martong, gamesh411.
Herald added subscribers: cfe-commits, ASDenysPetrov, Charusso, dkrupp, donat.nagy, mikhail.ramalho, a.sidorin, rnkovacs, szepet, whisperity.
Herald added a project: clang.
steakhal requested review of this revision.

Refines the CStringLength modeling API to be pure.
Also removes the magic //hypothetical// parameter from the CStringChecker.

Now the getters and setters are behaving as expected.
This is enforced by taking the State as `const` pointer.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84979

Files:
  clang/lib/StaticAnalyzer/Checkers/CStringChecker/CStringChecker.cpp
  clang/lib/StaticAnalyzer/Checkers/CStringChecker/CStringChecker.h
  clang/lib/StaticAnalyzer/Checkers/CStringChecker/CStringLength.h
  clang/lib/StaticAnalyzer/Checkers/CStringChecker/CStringLengthModeling.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84979.282025.patch
Type: text/x-patch
Size: 8603 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200730/544ba24d/attachment.bin>


More information about the cfe-commits mailing list