[PATCH] D78933: [analyzer] RangeConstraintManager optimizations in comparison expressions

Gábor Horváth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 13 07:32:40 PDT 2020


xazax.hun added inline comments.


================
Comment at: clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp:90
+
+  TriState GetCmpOpState(size_t CurrentOPIndex, size_t QueriedOPIndex) const {
+    assert(CurrentOPIndex < CmpOpCount && QueriedOPIndex <= CmpOpCount);
----------------
I think this function should not work with indices. It should work with operators. So the caller of this function never need to invoke `IndexFromOp` or `OpFromIndex` making this function easier to use.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78933/new/

https://reviews.llvm.org/D78933





More information about the cfe-commits mailing list