[PATCH] D105340: [analyzer] Produce SymbolCast symbols for integral types in SValBuilder::evalCast

Denys Petrov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 5 08:01:11 PDT 2021


ASDenysPetrov updated this revision to Diff 356506.
ASDenysPetrov edited the summary of this revision.
ASDenysPetrov added a comment.

Changed option name to `support-symbolic-integer-casts`. Added `signed char` to tests. Splitted tests into //x86// and //x64// versions, where `sizeof(long)` is 4 and 8 correspondingly.
P.S. splitting tests is due to absence of any reliable way to include specific code with preprocessor directives based on size of `long` on a specific platform.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105340/new/

https://reviews.llvm.org/D105340

Files:
  clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.def
  clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h
  clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
  clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
  clang/test/Analysis/analyzer-config.c
  clang/test/Analysis/produce-symbolcast_x64.cpp
  clang/test/Analysis/produce-symbolcast_x86.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105340.356506.patch
Type: text/x-patch
Size: 293707 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210705/8a999f3b/attachment-0001.bin>


More information about the cfe-commits mailing list