]> granicus.if.org Git - clang/commit
[analyzer] ConditionBRVisitor: Unknown condition evaluation support
authorCsaba Dabis <dabis.csaba98@gmail.com>
Sat, 16 Mar 2019 09:24:30 +0000 (09:24 +0000)
committerCsaba Dabis <dabis.csaba98@gmail.com>
Sat, 16 Mar 2019 09:24:30 +0000 (09:24 +0000)
commit1d92e20334c33d090f930865d60db248247e2c94
treecc6d2e151d9229a6588c69c36c3a362cfa11acc3
parentef1d401f90156e7edc55857740fd3a5032b888c9
[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: xazax.hun, baloghadamsoftware, szepet, a.sidorin, mikhail.ramalho, Szelethus, donat.nagy, dkrupp, gsd, gerazo

Tags: #clang

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

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