]> granicus.if.org Git - clang/commit
Add implicit declarations of allocation functions when looking them up for
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 4 Feb 2014 01:14:30 +0000 (01:14 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 4 Feb 2014 01:14:30 +0000 (01:14 +0000)
commit661bb397eb18942cb53ca14399065ad3489bf40c
tree2d0f43698a1935922d080cc1e68100f9e462d979
parent19b4096274103a7c3bdf9219fc9226b5ebc1557f
Add implicit declarations of allocation functions when looking them up for
redeclaration, not just when looking them up for a use -- we need the implicit
declaration to appropriately check various properties of them (notably, whether
they're deleted).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200729 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaLookup.cpp
test/Analysis/NewDelete-variadic.cpp
test/CXX/basic/basic.stc/basic.stc.dynamic/basic.stc.dynamic.allocation/p1.cpp
test/CXX/basic/basic.stc/basic.stc.dynamic/basic.stc.dynamic.deallocation/p1.cpp
test/SemaCXX/cxx0x-cursory-default-delete.cpp