[clang-tidy] Skip template ctors in modernize-use-equals-default
authorAlexander Shaposhnikov <ashaposhnikov@google.com>
Fri, 28 Oct 2022 05:30:19 +0000 (05:30 +0000)
committerAlexander Shaposhnikov <ashaposhnikov@google.com>
Fri, 28 Oct 2022 05:30:19 +0000 (05:30 +0000)
commit29e4606ced7284c87a88fdcd34a6d179a1350fe9
treeef38c540b65e40107ac03e561576a70bd1aa73e5
parentc8eb932ce6408e09c739097b325008c10797846d
[clang-tidy] Skip template ctors in modernize-use-equals-default

Skip template ctors in modernize-use-equals-default,
such constructors may be enabled/disabled via SFINAE,
it is not safe to make them "= default".

Test plan: ninja check-all

Differential revision: https://reviews.llvm.org/D136797
clang-tools-extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/modernize/use-equals-default.cpp