[PATCH] D79072: [Analyzer][VLASizeChecker] Check VLA size in typedef and sizeof.
Gábor Horváth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 29 08:00:59 PDT 2020
xazax.hun added a comment.
Overall the changes look good to me here. I had a small nit inline. But I wonder if we actually should add more code in the analyzer core to better model the sizes of memory regions corresponding to the VLAs.
================
Comment at: clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp:576
ExplodedNodeSet &Dst) {
+ if (isa<TypedefNameDecl>(*DS->decl_begin())) {
+ ExplodedNodeSet DstPre;
----------------
At first, it might be confusing why do we need to handle typedefs at all. I think it might worth adding a comment about VLAs.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79072/new/
https://reviews.llvm.org/D79072
More information about the cfe-commits
mailing list