]> granicus.if.org Git - clang/commit
[analyzer; new edges] Don't eliminate subexpr edge cycles if the line is long.
authorJordan Rose <jordan_rose@apple.com>
Mon, 3 Jun 2013 23:00:05 +0000 (23:00 +0000)
committerJordan Rose <jordan_rose@apple.com>
Mon, 3 Jun 2013 23:00:05 +0000 (23:00 +0000)
commit22b0ad2d2a9c723bcdc94525a091fdbfbaa480fa
treefb4c1eba304298f3e3cba6ea15c511b750fa234c
parent3b5977e690b3d4476938a548bbd6f66c4a4a6dcd
[analyzer; new edges] Don't eliminate subexpr edge cycles if the line is long.

Specifically, if the line is over 80 characters, or if the top-level
statement spans mulitple lines, we should preserve sub-expression edges
even if they form a simple cycle as described in the last commit, because
it's harder to infer what's going on than it is for shorter lines.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183163 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/BugReporter.cpp
test/Analysis/edges-new.mm