[PATCH] Detect mismatching 'new' and 'delete' uses
Ismail Pazarbasi
ismail.pazarbasi at gmail.com
Mon Nov 17 10:51:00 PST 2014
Addressed:
* Removed class member `MismatchingNewDeleteDetector::DE`, and passed `DE` to `analyzeDeleteExpr`
* Reordered checks in `getNewExprFromInitListOrExpr`
* Renamed member functions so that they make more sense. e.g. `hasMatchingNewInCtor`, `hasMathingVarInit`
* Moved multiple checks from within `analyzeInClassInitializer` into `analyzeField`
* Removed unnecessary uses of APInt in serialization code
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.16299.patch
Type: text/x-patch
Size: 45774 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141117/17d3d3d0/attachment.bin>
More information about the cfe-commits
mailing list