diff options
author | DeLesley Hutchins <delesley@google.com> | 2013-08-29 17:26:57 +0000 |
---|---|---|
committer | DeLesley Hutchins <delesley@google.com> | 2013-08-29 17:26:57 +0000 |
commit | 5533ec5c559bf8c9624916cccb148ed8d0d9494e (patch) | |
tree | e3471f8ab6d36af3f5025e9463302121929355fb /clang/lib/Format/Format.cpp | |
parent | f5d4535a9309e0c3cfba949b01ed300047748720 (diff) | |
download | bcm5719-llvm-5533ec5c559bf8c9624916cccb148ed8d0d9494e.tar.gz bcm5719-llvm-5533ec5c559bf8c9624916cccb148ed8d0d9494e.zip |
Consumed analysis: improve handling of conditionals.
Patch by chris.wailes@gmail.com.
* The TestedVarsVisitor was folded into the ConsumedStmtVisitor.
* The VarTestResult class was updated to allow these changes.
* The PropagationInfo class was updated for the same reasons.
* Correctly handle short-circuiting of Boolean operations.
* Blocks are now marked as unreachable when we can statically prove we will
never branch to them.
* Unreachable blocks are skipped by the analysis.
llvm-svn: 189594
Diffstat (limited to 'clang/lib/Format/Format.cpp')
0 files changed, 0 insertions, 0 deletions