[PATCH] D16062: [analyzer] Rename kind-enumeration values of SVal, SymExpr, MemRegion classes, for consistency.
Artem Dergachev via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 11 05:39:14 PST 2016
NoQ created this revision.
NoQ added reviewers: zaks.anna, dcoughlin.
NoQ added a subscriber: cfe-commits.
Based on discussion in D15448.
- For every sub-class `C`, its kind in the relevant enumeration is `CKind` (or `C##Kind` in preprocessor-ish terms), eg:
`MemRegionKind` -> `MemRegionValKind`
`RegionValueKind` -> `SymbolRegionValueKind`
`CastSymbolKind` -> `SymbolCastKind`
`SymIntKind` -> `SymIntExprKind`
- `MemSpaceRegion` is now an abstract base and no longer occupies `GenericMemSpaceRegionKind`. Instead, a new class, `CodeSpaceRegion`, is introduced for handling the unique use case for `MemSpaceRegion` as "the generic memory space" (when it represents a memory space that holds all executable code).
- `BEG_` prefixes in memory region kind ranges are renamed to `BEGIN_` for consisitency with symbol kind ranges (pro: not about begging, con: two extra characters to type).
http://reviews.llvm.org/D16062
Files:
include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h
lib/StaticAnalyzer/Core/MemRegion.cpp
lib/StaticAnalyzer/Core/ProgramState.cpp
lib/StaticAnalyzer/Core/SVals.cpp
lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp
lib/StaticAnalyzer/Core/Store.cpp
lib/StaticAnalyzer/Core/SymbolManager.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16062.44470.patch
Type: text/x-patch
Size: 26934 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160111/8c3b2519/attachment-0001.bin>
More information about the cfe-commits
mailing list