When applying 'delete' on a pointer-to-array type match GCC and EDG behavior and...
commita03c2a265003f10407486c516fe20807910860ce
authorArgiris Kirtzidis <akyrtzi@gmail.com>
Mon, 13 Sep 2010 20:15:54 +0000 (13 20:15 +0000)
committerArgiris Kirtzidis <akyrtzi@gmail.com>
Mon, 13 Sep 2010 20:15:54 +0000 (13 20:15 +0000)
tree5b91fb94a2e1a10ffbd30a975bebb9865c88395e
parentff3e8ae562ae6eab487393a19affa08d103ba7c7
When applying 'delete' on a pointer-to-array type match GCC and EDG behavior and treat it as 'delete[]'.
Also offer a fix-it hint adding '[]'.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113778 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ExprCXX.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExprCXX.cpp
lib/Serialization/ASTReaderStmt.cpp
lib/Serialization/ASTWriterStmt.cpp
test/CodeGenCXX/delete.cpp
test/SemaCXX/delete.cpp [new file with mode: 0644]