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
Paths
| Differential D93333
[clang-tidy] ppcoreguidelines-pro-type-member-init: suppress warning for default member funcs ClosedPublic Authored by cwarner-8702 on Dec 15 2020, 12:30 PM.
Details
Summary 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
Diff Detail Event TimelineThis revision is now accepted and ready to land.Dec 17 2020, 2:25 PM lebedev.ri retitled this revision from tidy: supress warning for default member funcs to [clang-tidy] ppcoreguidelines-pro-type-member-init: suppress warning for default member funcs.Dec 17 2020, 11:20 PM Comment Actions @malcolm.parsons Could you or someone with commit access merge this on my behalf? Author Name: Chris Warner This revision was landed with ongoing or failed builds.Dec 20 2020, 3:24 AM Closed by commit rG35f2c3a8b41f: [clang-tidy] cppcoreguidelines-pro-type-member-init: suppress warning for… (authored by cwarner-8702, committed by malcolm.parsons). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 311993 clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-pro-type-member-init.cpp
|