[clang-tidy] cppcoreguidelines-pro-type-member-init: suppress warning for default...
authorChris Warner <cwarner@esri.com>
Sun, 20 Dec 2020 11:11:27 +0000 (11:11 +0000)
committerMalcolm Parsons <malcolm.parsons@gmail.com>
Sun, 20 Dec 2020 11:22:41 +0000 (11:22 +0000)
commit35f2c3a8b41fd3b6ef88d013a7c3ed9478b765e4
tree7c3a396a343556bc67a73fdbab6d5436bff7f844
parent99562332e3de19da9da1714a58b5cc2d24724ef5
[clang-tidy] cppcoreguidelines-pro-type-member-init: suppress warning for default member funcs

Modify the cppcoreguidelines-pro-type-member-init checker to ignore warnings from the move and copy-constructors when they are compiler defined with `= default` outside of the type declaration.

Reported as [LLVM bug 36819](https://bugs.llvm.org/show_bug.cgi?id=36819)

Reviewed By: malcolm.parsons

Differential Revision: https://reviews.llvm.org/D93333
clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-pro-type-member-init.cpp