]> granicus.if.org Git - clang/commit
Tweak -Wuninitialized's handling of 'int x = x' to report that as the root cause...
authorTed Kremenek <kremenek@apple.com>
Thu, 13 Oct 2011 18:50:06 +0000 (18:50 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 13 Oct 2011 18:50:06 +0000 (18:50 +0000)
commit9e7617220135a6f6226cf09cb242cc1b905aedb4
tree703b7cb666fab0230627c8deb01dcfefae2d3912
parent64a371ff8d525880e519a43fc522cbdc79fc4a89
Tweak -Wuninitialized's handling of 'int x = x' to report that as the root cause of an uninitialized variable IFF there are other uses of that uninitialized variable.  Fixes <rdar://problem/9259237>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141881 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/Analyses/UninitializedValues.h
lib/Analysis/UninitializedValues.cpp
lib/Sema/AnalysisBasedWarnings.cpp
test/Sema/uninit-variables.c