]> granicus.if.org Git - clang/commit
Rework implementation of DR1492: Apply the resolution to operator delete too,
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 20 Oct 2012 08:26:51 +0000 (08:26 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 20 Oct 2012 08:26:51 +0000 (08:26 +0000)
commit444d384a969ce05ae534bf8be3174e308dc8c58b
treefe1544626770716ea91fbde7c6e1c2259ffe4ae6
parented1d5d8ee17f639563dc0397bd9af1b482f17295
Rework implementation of DR1492: Apply the resolution to operator delete too,
since it also has an implicit exception specification. Downgrade the error to
an extwarn, since at least for operator delete, system headers like to declare
it as 'noexcept' whereas the implicit definition does not have an explicit
exception specification. Move the exception specification for user-declared
'operator delete' functions from the type-as-written into the type, to reflect
reality and to allow us to detect whether there was an implicit exception spec
or not.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166372 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExceptionSpec.cpp
lib/Sema/SemaType.cpp
test/CXX/except/except.spec/p15.cpp
test/CXX/except/except.spec/p4.cpp [new file with mode: 0644]
test/CXX/special/class.dtor/p3.cpp