[PATCH] D124244: [analyzer] add StoreToImmutable and ModelConstQualifiedReturn checkers
Zurab Tsinadze via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 22 03:58:18 PDT 2022
zukatsinadze created this revision.
zukatsinadze added reviewers: NoQ, martong, steakhal, balazske, vsavchenko.
zukatsinadze added a project: clang.
Herald added subscribers: manas, ASDenysPetrov, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, rnkovacs, szepet, baloghadamsoftware, xazax.hun, mgorny.
Herald added a project: All.
zukatsinadze requested review of this revision.
Herald added a subscriber: cfe-commits.
The patch adds two new checkers.
//core.StoreToImmutable// that warns binds on immutable memory and
//alpha.security.cert.env.ModelConstQualifiedReturn// that models return values
of some functions that should be considered const qualified. Based on SEI CERT
ENV30-C: https://wiki.sei.cmu.edu/confluence/x/79UxBQ
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D124244
Files:
clang/docs/analyzer/checkers.rst
clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt
clang/lib/StaticAnalyzer/Checkers/StoreToImmutableChecker.cpp
clang/lib/StaticAnalyzer/Checkers/cert/ModelConstQualifiedReturnChecker.cpp
clang/test/Analysis/analyzer-enabled-checkers.c
clang/test/Analysis/cert/env30-c.cpp
clang/test/Analysis/std-c-library-functions-arg-enabled-checkers.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124244.424427.patch
Type: text/x-patch
Size: 17247 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220422/a2152845/attachment-0001.bin>
More information about the cfe-commits
mailing list