[PATCH] D127306: [analyzer] Treat system globals as mutable if they are not const

Balázs Benics via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 9 10:46:21 PDT 2022


steakhal updated this revision to Diff 435611.
steakhal marked 2 inline comments as done.
steakhal added a comment.

- Use `assert` macro for introducing constraints.
- Add tests for store binding invalidations, besides constraint invalidations.


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

https://reviews.llvm.org/D127306

Files:
  clang/lib/StaticAnalyzer/Core/MemRegion.cpp
  clang/test/Analysis/Inputs/some_system_globals.h
  clang/test/Analysis/Inputs/some_user_globals.h
  clang/test/Analysis/global-region-invalidation.c
  clang/test/Analysis/globals-are-not-always-immutable.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127306.435611.patch
Type: text/x-patch
Size: 6356 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220609/557257d6/attachment.bin>


More information about the cfe-commits mailing list