[PATCH] D26741: [clang-tidy] Changes to modernize-use-default check

Malcolm Parsons via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 16 04:03:09 PST 2016


malcolm.parsons created this revision.
malcolm.parsons added reviewers: aaron.ballman, alexfh.
malcolm.parsons added a subscriber: cfe-commits.

Warn about special member functions that only contain a comment.
Report the location of the special member function, unless it is
defined in a macro.  Reporting the location of the body in a macro is
more helpful as it causes the macro expansion location to be reported too.

Fixes PR30920.


https://reviews.llvm.org/D26741

Files:
  clang-tidy/modernize/UseDefaultCheck.cpp
  test/clang-tidy/modernize-use-default-copy.cpp
  test/clang-tidy/modernize-use-default.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26741.78164.patch
Type: text/x-patch
Size: 9286 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161116/3480f7bf/attachment-0001.bin>


More information about the cfe-commits mailing list