[PATCH] D45071: [analyzer] Track null or undef values through pointer arithmetic.
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 30 12:11:49 PDT 2018
NoQ marked an inline comment as done.
NoQ added inline comments.
================
Comment at: lib/StaticAnalyzer/Core/BugReporterVisitors.cpp:78
+const Expr *peelOffPointerArithmetic(const BinaryOperator *B) {
+ if (B->isAdditiveOp() && B->getType()->isPointerType()) {
----------------
george.karpenkov wrote:
> static.
> +1 for using functions.
Whoops.
https://reviews.llvm.org/D45071
More information about the cfe-commits
mailing list