martong added inline comments.

================
Comment at: clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp:25-28
+  // Query the constraint manager whether the SVal has only one possible
+  // (integer) value. If that is the case, the value is returned. Otherwise,
+  // returns NULL.
+  const llvm::APSInt *getConstValue(ProgramStateRef state, SVal V);
----------------
steakhal wrote:
> I'm also wondering if this should be at the top. I would rather put it below 
> `simplifySValOnce()`.
It is a good idea to draw the checker writer's attention to use 
`getKnownValue`, however, this is a `private` function deliberately for this 
exact reason.

> I'm also wondering if this should be at the top. I would rather put it below 
> simplifySValOnce().
I've put it here because simplifySValOnce references this even in its header 
comment.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D127285

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to