[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).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 26934 bytes
Desc: not available
More information about the cfe-commits