ReSharper C++ rename-refactor does not consider lambda functions

Hi,

while the renaming of member variables generally works really well with ReSharper C++ it seems to completely ignore usages in Lambda-functions, which is really unfortunate.

Is this a know issue ? Is it planned to be fixed ? Is there a workaround ?

Cheers

4 comments
Comment actions Permalink

Hello,

No, we're not aware of such issues. Please let us know how to reproduce them.

0
Comment actions Permalink

Here you go:

#include <functional>
class Test
{
  std::function<int()> getter_ = [this]()->int {return this->value_; };
  int value_;
};

Try renaming "value_". It will not rename the reference in the lambda.

0
Comment actions Permalink

Thanks! Filed https://youtrack.jetbrains.com/issue/RSCPP-32644 to track this issue.

0
Comment actions Permalink

Great, thank you. :)

0

Please sign in to leave a comment.