clang-tidy: add IgnoreMacros option to modernize-use-default-member-init
authorMiklos Vajna <vmiklos@vmiklos.hu>
Mon, 8 May 2017 15:13:31 +0000 (15:13 +0000)
committerMiklos Vajna <vmiklos@vmiklos.hu>
Mon, 8 May 2017 15:13:31 +0000 (15:13 +0000)
commit0854f2dd8ff60d68cefcbb64165d7855d6f96543
treeaa0965818cf75375c3ff739fb467bc2cdd535994
parent7fdbb3feda32fa3af4202c01ff49a3a7f050b1a2
clang-tidy: add IgnoreMacros option to modernize-use-default-member-init

Summary:
And also enable it by default to be consistent with e.g.
modernize-use-using.

This helps e.g. when running this check on cppunit client code where the
macro is provided by the system, so there is no easy way to modify it.

Reviewers: alexfh, malcolm.parsons

Reviewed By: malcolm.parsons

Subscribers: cfe-commits

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

llvm-svn: 302429
clang-tools-extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
clang-tools-extra/clang-tidy/modernize/UseDefaultMemberInitCheck.h
clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
clang-tools-extra/docs/clang-tidy/checks/modernize-use-default-member-init.rst
clang-tools-extra/test/clang-tidy/modernize-use-default-member-init-macros.cpp [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/modernize-use-default-member-init.cpp