This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Fix PR#37210 'Out-of-class template constructor only half-fixed with modernize-pass-by-value'
ClosedPublic

Authored by f00kat on Feb 26 2020, 2:31 AM.

Details

Summary

Existing 'modernize-pass-by-value' check works only with non template values in initializers.
Now we also skip cases when the value has type 'TemplateSpecializedType' inside 'cxxConstructExpr'.

Diff Detail

Event Timeline

f00kat created this revision.Feb 26 2020, 2:31 AM
This revision is now accepted and ready to land.Feb 27 2020, 7:03 AM

Can you commit it please?

aaron.ballman closed this revision.Feb 28 2020, 6:20 AM

Can you commit it please?

Happy to do so, but you may want to consider getting git access yourself as you've authored quite a few patches. For more information: https://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access

I've commit this on your behalf in 365c99fd7d5461be902a5cec54d773cb82b56101