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?

1 comment
Comment actions Permalink


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!


Please sign in to leave a comment.