summaryrefslogtreecommitdiff
path: root/clang/test/Analysis/store-to-immutable-lambda-init.cpp
AgeCommit message (Collapse)Author
2025-08-04[clang][analyzer] Add StoreToImmutable checker (#150417)Endre Fülöp
This adds alpha.core.StoreToImmutable, a new alpha checker that detects writes to immutable memory regions, implementing part of SEI CERT Rule ENV30-C. The original proposal only handled global const variables, but this implementation extends it to also detect writes to: - Local const variables - String literals - Const parameters and struct members - Const arrays and pointers to const data This checker is the continuation of the work started by zukatsinadze. Discussion: https://reviews.llvm.org/D124244