]> granicus.if.org Git - clang/commit
Improve diagnostic on default-initializing const variables (PR20208).
authorNico Weber <nicolasweber@gmx.de>
Wed, 23 Jul 2014 05:16:10 +0000 (05:16 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 23 Jul 2014 05:16:10 +0000 (05:16 +0000)
commit2203f2c236decff724df42ceff926ef1effd6ca8
treec73bbcad095da64a7528a412f729eb32c6c3065e
parent1c077723cfb2e40c150fdbd885bee92cb8873e55
Improve diagnostic on default-initializing const variables (PR20208).

This tweaks the diagnostic wording slighly, and adds a fixit on a note.
An alternative would be to add the fixit directly on the diagnostic, see
the review thread linked to from the bug for a few notes on that approach.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213725 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaInit.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p9.cpp
test/CXX/dcl.decl/dcl.fct.def/dcl.fct.def.default/p2.cpp
test/CXX/dcl.decl/dcl.init/p6.cpp
test/CXX/drs/dr0xx.cpp
test/CXX/drs/dr4xx.cpp
test/SemaCXX/constant-expression-cxx11.cpp
test/SemaCXX/constexpr-value-init.cpp
test/SemaCXX/cxx0x-cursory-default-delete.cpp
test/SemaCXX/cxx1y-variable-templates_in_class.cpp