]> granicus.if.org Git - clang/commit
[analyzer] PR8962 again. Ban ParenExprs (and friends) from block-level expressions...
authorJordy Rose <jediknil@belkadan.com>
Fri, 10 Jun 2011 08:49:37 +0000 (08:49 +0000)
committerJordy Rose <jediknil@belkadan.com>
Fri, 10 Jun 2011 08:49:37 +0000 (08:49 +0000)
commitac73ea8c12772fd0dcec71b83c193a2837de7f8b
treef7badf7b6b5a5dd2b66832b21f9ad8ca51d51b84
parentc530d1758cef1acc596f2ec905665da534e66d29
[analyzer] PR8962 again. Ban ParenExprs (and friends) from block-level expressions (by calling IgnoreParens before adding expressions to blocks). Undo 132769 (LiveVariables' local IgnoreParens), since it's no longer necessary.

Also, have Environment stop looking through NoOp casts; it didn't match the behavior of LiveVariables. And once that's gone, the whole cast block of that switch is unnecessary.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132840 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/AnalysisContext.cpp
lib/Analysis/CFG.cpp
lib/Analysis/LiveVariables.cpp
lib/StaticAnalyzer/Core/Environment.cpp
test/Analysis/misc-ps.c