summaryrefslogtreecommitdiff
path: root/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-06-03 22:59:48 +0000
committerJordan Rose <jordan_rose@apple.com>2013-06-03 22:59:48 +0000
commit96f1061fbe59faff5b266a3a04061cefcfe03e2f (patch)
treeb18eed564fe48636b528b60fd0319c9f4d1c1baf /lib/CodeGen/ModuleBuilder.cpp
parent01f1ff79f70b3e042995a43b29ccbf0fffc77d5f (diff)
downloadclang-96f1061fbe59faff5b266a3a04061cefcfe03e2f.tar.gz
clang-96f1061fbe59faff5b266a3a04061cefcfe03e2f.tar.bz2
clang-96f1061fbe59faff5b266a3a04061cefcfe03e2f.tar.xz
[analyzer; new edges] Include context for edges to sub-expressions.
The current edge-generation algorithm sometimes creates edges from a top-level statement A to a sub-expression B.1 that's not at the start of B. This creates a "swoosh" effect where the arrow is drawn on top of the text at the start of B. In these cases, the results are clearer if we see an edge from A to B, then another one from B to B.1. Admittedly, this does create a /lot/ of arrows, some of which merely hop into a subexpression and then out again for a single note. The next commit will eliminate these if the subexpression is simple enough. This updates and reuses some of the infrastructure from the old edge- generation algorithm to find the "enclosing statement" context for a given expression. One change in particular marks the context of the LHS or RHS of a logical binary operator (&&, ||) as the entire operator expression, rather than the subexpression itself. This matches our behavior for ?:, and allows us to handle nested context information. <rdar://problem/13902816> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183159 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions