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

0
4 comments
Avatar
Permanently deleted user

Hello,

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

0

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
Avatar
Permanently deleted user

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

0

Great, thank you. :)

0

Please sign in to leave a comment.