]> granicus.if.org Git - clang/commit
Warn if a local variable's initializer retains a pointer/reference to a
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 24 Jul 2018 00:55:08 +0000 (00:55 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 24 Jul 2018 00:55:08 +0000 (00:55 +0000)
commit288c3cd43fb42321763a5685c6e6c40fe97f2fbb
treee4940e331dc4956beded420cd08445522996054c
parent5feb21c1c6720e01d992a852ee6f2c3984f266e7
Warn if a local variable's initializer retains a pointer/reference to a
non-lifetime-extended temporary object.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337790 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaInit.cpp
test/CXX/drs/dr16xx.cpp
test/SemaCXX/address-of-temporary.cpp
test/SemaCXX/warn-dangling-local.cpp [new file with mode: 0644]