[clang-tidy] Changes to modernize-use-default check
authorMalcolm Parsons <malcolm.parsons@gmail.com>
Thu, 17 Nov 2016 09:14:04 +0000 (09:14 +0000)
committerMalcolm Parsons <malcolm.parsons@gmail.com>
Thu, 17 Nov 2016 09:14:04 +0000 (09:14 +0000)
commit5be5092c49191881b2baa8cbce6418a914f6b8e9
tree2952fdbb697d73cdc8ef81a794b6b4b94fd26f5d
parent43ccb38bb50c052a95f364444bef52c914db82ed
[clang-tidy] Changes to modernize-use-default check

Summary:
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.

Reviewers: alexfh, aaron.ballman

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D26741

llvm-svn: 287215
clang-tools-extra/clang-tidy/modernize/UseDefaultCheck.cpp
clang-tools-extra/test/clang-tidy/modernize-use-default-copy.cpp
clang-tools-extra/test/clang-tidy/modernize-use-default.cpp