[PATCH] D75529: [analyzer] Limit UCharMax to min of max uchar or max int

Vince Bridgers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 12 17:43:08 PDT 2020


vabridgers marked 6 inline comments as done.
vabridgers added a comment.

I believe all comments have been addressed. Please let me know if there's anything else required. Thanks



================
Comment at: clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp:519
+  // architectures, but not for others.
+  const RangeInt UCharMax = 
+      std::min(BVF.getMaxValue(ACtx.UnsignedCharTy).getLimitedValue(), IntMax);
----------------
NoQ wrote:
> Let's rename this constant then, so that we still had our `UCharMax` when we actually need the real `UCHAR_MAX` in the summary.
Done, thanks Artem.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D75529





More information about the cfe-commits mailing list