[PATCH] Detect mismatching 'new' and 'delete' uses
Ismail Pazarbasi
ismail.pazarbasi at gmail.com
Tue Sep 30 15:40:19 PDT 2014
Addressed comments:
* Convert `DenseMap` to `MapVector` to keep order of queued delete-expressions
* Fixed (or removed) documentation
* Convert `Sema::DiagnoseMismatchedNewDelete` into a static non-member function
* Simplify assert message in `MismatchingNewDeleteDetector::analyzeField`
* Use `IgnoreParenImpCasts` in `MismatchingNewDeleteDetector::getNewExprFromInitListOrExpr`
http://reviews.llvm.org/D4661
Files:
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/ExternalSemaSource.h
include/clang/Sema/MultiplexExternalSemaSource.h
include/clang/Sema/Sema.h
include/clang/Serialization/ASTBitCodes.h
include/clang/Serialization/ASTReader.h
lib/Sema/MultiplexExternalSemaSource.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaExprCXX.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp
test/Analysis/Malloc+MismatchedDeallocator+NewDelete.cpp
test/Analysis/MismatchedDeallocator-checker-test.mm
test/Analysis/MismatchedDeallocator-path-notes.cpp
test/CodeGenCXX/new.cpp
test/SemaCXX/delete-mismatch.h
test/SemaCXX/delete.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4661.14249.patch
Type: text/x-patch
Size: 45925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140930/66465ab3/attachment.bin>
More information about the cfe-commits
mailing list