[PATCH] D158707: [analyzer] Fix a few size-type signedness inconsistency related to DynamicExtent
Ding Fei via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 29 09:09:35 PDT 2023
danix800 updated this revision to Diff 554383.
danix800 added a comment.
1. Cleanup unnecessary undef/zero checking;
2. Use better defensive API for getting `ConstantArrayType`;
3. Comment on bool argument for readability;
4. Add more test for extent with offset cases.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158707/new/
https://reviews.llvm.org/D158707
Files:
clang/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicExtent.h
clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp
clang/lib/StaticAnalyzer/Core/DynamicExtent.cpp
clang/test/Analysis/array-bound-v2-constraint-check.c
clang/test/Analysis/flexible-array-members.c
clang/test/Analysis/memory-model.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158707.554383.patch
Type: text/x-patch
Size: 16363 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230829/f88528b8/attachment-0001.bin>
More information about the cfe-commits
mailing list