This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] readability-redundant-declaration false positive for defaulted function
ClosedPublic

Authored by fgross on May 19 2017, 7:59 AM.

Details

Summary
template <class T>
struct C {
  C();
};

template <class T>
C<T>::C() = default;

Causes a readability-redundant-declaration diagnostic. This is caused by isDefinition not matching defaulted functions.

Diff Detail

Event Timeline

fgross created this revision.May 19 2017, 7:59 AM
alexfh accepted this revision.May 19 2017, 8:30 AM

LG. Thank you!

This revision is now accepted and ready to land.May 19 2017, 8:30 AM
This revision was automatically updated to reflect the committed changes.