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
Please sign in to leave a comment.
Hello,
No, we're not aware of such issues. Please let us know how to reproduce them.
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.
Thanks! Filed https://youtrack.jetbrains.com/issue/RSCPP-32644 to track this issue.
Great, thank you. :)