]> granicus.if.org Git - clang/commit
When applying 'delete' on a pointer-to-array type match GCC and EDG behavior and...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 13 Sep 2010 20:15:54 +0000 (20:15 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 13 Sep 2010 20:15:54 +0000 (20:15 +0000)
commit4076dacf1497fb95cb298b9d964fbdbdaf9bde6c
tree5b91fb94a2e1a10ffbd30a975bebb9865c88395e
parentf1b8911d35bb2830a13267581d3cbde4b6b85db6
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]