The Google C++ Style Guide doesn't require copy constructors to be
declared explicit, but some people do this by mistake. Make this check detect
and fix such cases.
Details
Details
Diff Detail
Diff Detail
Event Timeline
clang-tidy/google/GoogleTidyModule.cpp | ||
---|---|---|
34 | IMO, passing in a lambda is a slight overkill here, at least until this is actually used for a second purpose. But ok. | |
62 | So, this is: if (a || b) { if (a && b) { .. } return; } I think this is easier to follow as: if (a && b) { .. } if (a || b) return; And the latter if can actually be merged with the if concerning the parameter count. |
IMO, passing in a lambda is a slight overkill here, at least until this is actually used for a second purpose. But ok.