summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/struct-recursion.c
diff options
context:
space:
mode:
authorIsmail Pazarbasi <ismail.pazarbasi@gmail.com>2015-05-18 19:59:11 +0000
committerIsmail Pazarbasi <ismail.pazarbasi@gmail.com>2015-05-18 19:59:11 +0000
commite5768d1717a354531f00062fdaf5d1dfbbedf12b (patch)
tree22c0dc5782308e6e284428b877eff0e386fb3f6a /clang/test/Parser/struct-recursion.c
parent1d4911bc994789169594be634ae158966fc41cfb (diff)
downloadbcm5719-llvm-e5768d1717a354531f00062fdaf5d1dfbbedf12b.tar.gz
bcm5719-llvm-e5768d1717a354531f00062fdaf5d1dfbbedf12b.zip
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`. rev 2 update: `getNewExprFromInitListOrExpr` should return `dyn_cast_or_null` instead of `dyn_cast`, since `E` might be null. Reviewers: rtrieu, jordan_rose, rsmith Subscribers: majnemer, cfe-commits Differential Revision: http://reviews.llvm.org/D4661 llvm-svn: 237608
Diffstat (limited to 'clang/test/Parser/struct-recursion.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud