[PATCH] Extend the check to detect patterns like 'ptr.get() == nullptr'

Samuel Benzaquen sbenza at google.com
Mon Apr 7 09:29:55 PDT 2014


  Fixed the typo on shared_ptr and added a shared_ptr to the test.

  Fixed the -fix.cpp test to actually check the output.
  FileCheck can match the CHECK: lines with themselves if you don't remove them from the input.

Hi djasper, klimek-test,

http://reviews.llvm.org/D3294

CHANGE SINCE LAST DIFF
  http://reviews.llvm.org/D3294?vs=8382&id=8411#toc

Files:
  clang-tidy/misc/RedundantSmartptrGet.cpp
  test/clang-tidy/make_compile_commands_json.sh
  test/clang-tidy/redundant-smartptr-get-fix.cpp
  test/clang-tidy/redundant-smartptr-get.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3294.2.patch
Type: text/x-patch
Size: 8450 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140407/503d920f/attachment.bin>


More information about the cfe-commits mailing list