Examining which function parameters can be made const

I would like ReSharper to tell me when a reference parameter to a function can be turned into a const reference.  Is this currently possible?

0
1 comment
Avatar
Permanently deleted user

William,

It's not currently possible, but I don't see why it can't be implemented similar to 'Function can be made const' analysis. I filed https://youtrack.jetbrains.com/issue/RSCPP-18281, please vote for it to get notified when the analysis is added.

Thanks for the suggestion!

0

Please sign in to leave a comment.