HomePhabricator

Detect uses of mismatching forms of 'new' and 'delete'

Authored by ismailp on May 14 2015, 9:14 AM.

Description

Detect uses of mismatching forms of 'new' and 'delete'

Emit warning when operand to delete is allocated with new[] or
operand to delete[] is allocated with new.

Reviewers: rtrieu, jordan_rose, rsmith

Subscribers: majnemer, cfe-commits

Differential Revision: http://reviews.llvm.org/D4661

llvm-svn: 237368

Details

Committed
ismailpMay 14 2015, 9:14 AM
Differential Revision
D4661: Detect mismatching 'new' and 'delete' uses
Parents
rG9d08232e28f6: Reflow long lines of some LLVMBuild files
Branches
Unknown
Tags
Unknown