]> granicus.if.org Git - clang/commit
Add -Wc++98-compat diagnostics for jumps which bypass initialization of non-POD
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Oct 2011 21:42:12 +0000 (21:42 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 20 Oct 2011 21:42:12 +0000 (21:42 +0000)
commit0e9e9814a7f8313c0c02b6afea71f0e4c411873e
tree2545862745d5ca6fb5b0a4db116ae1af1d1861b5
parentef47d27b9c76ed2f20e6c342e66b5450ef7e96ee
Add -Wc++98-compat diagnostics for jumps which bypass initialization of non-POD
but trivially constructible and destructible variables in C++11 mode. Also
incidentally improve the precision of the wording for jump diagnostics in C++98
mode.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142619 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/JumpDiagnostics.cpp
lib/Sema/SemaDecl.cpp
test/CXX/stmt.stmt/stmt.dcl/p3.cpp
test/SemaCXX/MicrosoftCompatibility.cpp
test/SemaCXX/cxx98-compat.cpp