[PATCH] D110357: [Analyzer] Extend ConstraintAssignor to handle remainder op

Denys Petrov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 15 01:35:58 PDT 2021


ASDenysPetrov added a comment.

Ok. Let's see what the benefits it brings.



================
Comment at: clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp:1619
+      return true;
+    const SymExpr *LHS = Sym->getLHS();
+    const llvm::APSInt &Zero =
----------------
steakhal wrote:
> martong wrote:
> > ASDenysPetrov wrote:
> > > steakhal wrote:
> > > > 
> > > Since `SymbolRef` actually is already `const`. (`using SymbolRef = const SymExpr *;`)
> > Fair enough.
> They mean different things. What I wanted is to declare both the pointer and the pointee `const`.
Oh, I see. `const T * const`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110357



More information about the cfe-commits mailing list