]> granicus.if.org Git - clang/commit
Remove the warning for variables declared in the if-expression being used in
authorNick Lewycky <nicholas@mxc.ca>
Thu, 5 Aug 2010 06:27:49 +0000 (06:27 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 5 Aug 2010 06:27:49 +0000 (06:27 +0000)
commitc133e9ea17d61062bcfb3bd6009c300c9a78161f
tree347ba936cfa3734b73d6b1ef0cafd8dc25fd4c26
parentdb0bc4706c4bda8e9166f40b5c7cfda656100818
Remove the warning for variables declared in the if-expression being used in
the else clause. The problem is that it's overly zealous and will respond to
uses in assignments, or after assignments. We should bring this back once we
can do it right. Fixes PR7100.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110314 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExpr.cpp
test/SemaCXX/warn-for-var-in-else.cpp [deleted file]