[PATCH] D22725: [clang-tidy] Add check 'modernize-use-algorithm'

Jonas Devlieghere via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 31 12:22:40 PDT 2016


JDevlieghere retitled this revision from "[clang-tidy] Add check 'misc-replace-memcpy'" to "[clang-tidy] Add check 'modernize-use-algorithm'".
JDevlieghere updated the summary for this revision.
JDevlieghere set the repository for this revision to rL LLVM.
JDevlieghere updated this revision to Diff 66247.
JDevlieghere added a comment.

- Addressed concerns raised by Etienne Bergeron
- Show warning when using void pointers but don't replace
- Don't make replacement when destination is const
- Don't make replacement when types are not compatible


Repository:
  rL LLVM

https://reviews.llvm.org/D22725

Files:
  clang-tidy/modernize/CMakeLists.txt
  clang-tidy/modernize/ModernizeTidyModule.cpp
  clang-tidy/modernize/UseAlgorithmCheck.cpp
  clang-tidy/modernize/UseAlgorithmCheck.h
  docs/ReleaseNotes.rst
  docs/clang-tidy/checks/list.rst
  docs/clang-tidy/checks/modernize-use-algorithm.rst
  test/clang-tidy/modernize-use-algorithm.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22725.66247.patch
Type: text/x-patch
Size: 12798 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160731/a61bf5fc/attachment.bin>


More information about the cfe-commits mailing list