[clang] [analyzer] Support interestingness in ArrayBoundV2 (PR #78315)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 19 08:50:30 PST 2024
================
@@ -33,7 +33,66 @@ using namespace taint;
using llvm::formatv;
namespace {
-enum OOB_Kind { OOB_Precedes, OOB_Exceeds, OOB_Taint };
+class StateUpdateReporter {
+ const SubRegion *Reg;
+ NonLoc ByteOffsetVal;
+ std::optional<QualType> ElementType = std::nullopt;
+ std::optional<int64_t> ElementSize = std::nullopt;
+ bool AssumedNonNegative = false;
----------------
NagyDonat wrote:
I placed them in this order because this "lower bound, then upper bound" order is the natural way to display them; but I can flip them if you think that this memory footprint reduction is significant.
https://github.com/llvm/llvm-project/pull/78315
More information about the cfe-commits
mailing list