[PATCH] D29726: [Clang-tidy] Fix for bug 31838: readability-delete-null-pointer does not work for class members
Alexander Kornienko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 9 17:11:08 PST 2017
alexfh requested changes to this revision.
alexfh added inline comments.
This revision now requires changes to proceed.
================
Comment at: test/clang-tidy/readability-delete-null-pointer.cpp:67
+ // CHECK-MESSAGES: :[[@LINE-2]]:7: warning: 'if' statement is unnecessary; deleting null pointer has no effect [readability-delete-null-pointer]
+ // CHECK-FIXES: {{^ }}
+ // CHECK-FIXES-NEXT: delete mp;
----------------
This should match the comment to verify the `if` is deleted.
https://reviews.llvm.org/D29726
More information about the cfe-commits
mailing list