[all-commits] [llvm/llvm-project] a12bfa: [analyzer] Retrieve a value from list initializati...
Denys Petrov via All-commits
all-commits at lists.llvm.org
Mon Nov 8 06:18:10 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a12bfac292db2195d3461dce51467d350de865dc
https://github.com/llvm/llvm-project/commit/a12bfac292db2195d3461dce51467d350de865dc
Author: Denys Petrov <dpetrov at accesssoftek.com>
Date: 2021-11-08 (Mon, 08 Nov 2021)
Changed paths:
M clang/lib/StaticAnalyzer/Core/RegionStore.cpp
M clang/test/Analysis/initialization.c
M clang/test/Analysis/initialization.cpp
Log Message:
-----------
[analyzer] Retrieve a value from list initialization of multi-dimensional array declaration.
Summary: Add support of multi-dimensional arrays in `RegionStoreManager::getBindingForElement`. Handle nested ElementRegion's getting offsets and checking for being in bounds. Get values from the nested initialization lists using obtained offsets.
Differential Revision: https://reviews.llvm.org/D111654
More information about the All-commits
mailing list