]> granicus.if.org Git - clang/commit
[analyzer] ConditionBRVisitor: Unknown condition evaluation support
authorCsaba Dabis <dabis.csaba98@gmail.com>
Sat, 16 Mar 2019 13:47:55 +0000 (13:47 +0000)
committerCsaba Dabis <dabis.csaba98@gmail.com>
Sat, 16 Mar 2019 13:47:55 +0000 (13:47 +0000)
commit1f558de1b9f8d8261602eb665ff4e72bb219a382
treecc6d2e151d9229a6588c69c36c3a362cfa11acc3
parent797cb7e86687b94b377386417699e35ec7104185
[analyzer] ConditionBRVisitor: Unknown condition evaluation support

Summary:
If the constraint information is not changed between two program states the
analyzer has not learnt new information and made no report. But it is
possible to happen because we have no information at all. The new approach
evaluates the condition to determine if that is the case and let the user
know we just `Assuming...` some value.

Reviewers: NoQ, george.karpenkov

Reviewed By: NoQ

Subscribers: llvm-commits, xazax.hun, baloghadamsoftware, szepet, a.sidorin,
mikhail.ramalho, Szelethus, donat.nagy, dkrupp, gsd, gerazo

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D57410

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356323 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
test/Analysis/diagnostics/macros.cpp
test/Analysis/uninit-vals.m