[PATCH] D15121: A new clang-tidy module to find calls to `std::swap`, and change them to use ADL

Marshall Clow via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 1 13:46:19 PST 2015


mclow.lists updated the summary for this revision.
mclow.lists updated this revision to Diff 41559.
mclow.lists added a comment.

Suggestions from @AaronBallman; now does the substitution correctly, and passes the tests.

Note: The diagnostics that clang emits are still whacko.


http://reviews.llvm.org/D15121

Files:
  clang-tidy/misc/CMakeLists.txt
  clang-tidy/misc/MiscTidyModule.cpp
  clang-tidy/misc/StdSwapCheck.cpp
  clang-tidy/misc/StdSwapCheck.h
  docs/clang-tidy/checks/list.rst
  docs/clang-tidy/checks/misc-StdSwap.rst
  test/clang-tidy/misc-StdSwap.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15121.41559.patch
Type: text/x-patch
Size: 10046 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151201/3bc45fca/attachment.bin>


More information about the cfe-commits mailing list