]> granicus.if.org Git - clang/commit
PR16054: Slight strengthening for -Wsometimes-uninitialized: if we use a
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 12 Sep 2013 18:49:10 +0000 (18:49 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 12 Sep 2013 18:49:10 +0000 (18:49 +0000)
commit8a1fdfc69cc6c2ccbfd57fc8ff643c589da9df9b
tree4841f48cc5fd302a5a33d232fbcf8298054abee0
parentaaaa2a1889fe882e7e41048e3b298ca594454eb1
PR16054: Slight strengthening for -Wsometimes-uninitialized: if we use a
variable uninitialized every time we reach its (reachable) declaration, or
every time we call the surrounding function, promote the warning from
-Wmaybe-uninitialized to -Wsometimes-uninitialized.

This is still slightly weaker than desired: we should, in general, warn
if a use is uninitialized the first time it is evaluated.

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