[analyzer] DynamicSize: Remove 'getExtent()' from regions
authorCharusso <dabis.csaba98@gmail.com>
Thu, 30 Jan 2020 15:04:37 +0000 (16:04 +0100)
committerCharusso <dabis.csaba98@gmail.com>
Thu, 30 Jan 2020 15:05:18 +0000 (16:05 +0100)
commit601687bf731a33364a7de0ece7acd1c17c9dd60d
tree6fb22040844681501316e189adb31313af86c214
parent523896f64a4c4b586a5fbcf676181826d2c0fbd0
[analyzer] DynamicSize: Remove 'getExtent()' from regions

Summary:
This patch introduces a placeholder for representing the dynamic size of
regions. It also moves the `getExtent()` method of `SubRegions` to the
`MemRegionManager` as `getStaticSize()`.

Reviewed By: NoQ

Differential Revision: https://reviews.llvm.org/D69540
17 files changed:
clang/include/clang/StaticAnalyzer/Core/PathSensitive/DynamicSize.h [new file with mode: 0644]
clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
clang/lib/StaticAnalyzer/Checkers/ArrayBoundCheckerV2.cpp
clang/lib/StaticAnalyzer/Checkers/BuiltinFunctionChecker.cpp
clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
clang/lib/StaticAnalyzer/Checkers/CastSizeChecker.cpp
clang/lib/StaticAnalyzer/Checkers/CheckPlacementNew.cpp
clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp
clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIChecker.cpp
clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
clang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp
clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
clang/lib/StaticAnalyzer/Core/CMakeLists.txt
clang/lib/StaticAnalyzer/Core/DynamicSize.cpp [new file with mode: 0644]
clang/lib/StaticAnalyzer/Core/MemRegion.cpp
clang/lib/StaticAnalyzer/Core/RegionStore.cpp
clang/lib/StaticAnalyzer/Core/SymbolManager.cpp