Add a warning for direct-list-initialization of a variable with a deduced type
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 11 Feb 2015 02:41:33 +0000 (02:41 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 11 Feb 2015 02:41:33 +0000 (02:41 +0000)
commit215f423ff22981327e56769150496a9000c2ba53
tree74d57be6db8bb4c77e12e30524fa16931a36e4ca
parent560558eb7c1deee76a1adb941e001e074dba460d
Add a warning for direct-list-initialization of a variable with a deduced type
(or of a lambda init-capture, which is sort-of such a variable). The semantics
of such constructs will change when we implement N3922, so we intend to warn on
this in Clang 3.6 then change the semantics in Clang 3.7.

llvm-svn: 228792
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Parse/ParseExprCXX.cpp
clang/lib/Sema/SemaDecl.cpp
clang/test/CXX/expr/expr.prim/expr.prim.lambda/p11-1y.cpp
clang/test/Parser/cxx0x-lambda-expressions.cpp
clang/test/Parser/objcxx0x-lambda-expressions.mm
clang/test/SemaCXX/cxx0x-initializer-stdinitializerlist.cpp