]> granicus.if.org Git - clang/commit
Add temporary hack to -Wuninitialize to create a separate CFG (for C++ code) that...
authorTed Kremenek <kremenek@apple.com>
Tue, 1 Feb 2011 17:43:21 +0000 (17:43 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 1 Feb 2011 17:43:21 +0000 (17:43 +0000)
commit63b54104700873dc4a5b95b3108052580b5370e7
tree689f9327e87f5d3bb56a7b9a7a811408b5c47f38
parent9fcbceed43e5610fdff43defe533934733453ae2
Add temporary hack to -Wuninitialize to create a separate CFG (for C++ code) that doesn't include implicit dtors.

Implicit dtors confuse the ad hoc path-sensitivity of UninitializedValuesV2.cpp.  This isn't
the ideal solution, as it will directly impact compile time, but should significantly reduce
the noise of -Wuninitialized on some code bases.

This immediately "fixes" the false positive reported in PR 9063, although this
isn't the right fix in the long run.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124667 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/AnalysisBasedWarnings.cpp