Refactoring: Disable const in 'Extract Function' in class

Answered

When I create a function out of the code snipped, the function is created with const at the end (also for getters/setters). This is very inconvenient and forces me to change the code again.

How can I disable it?

0
3 comments

Unfortunately, it hasn't been implemented in CLion yet. Feel free to create a feature request in our tracker: https://youtrack.jetbrains.com/issues/CPP.

0
Avatar
Permanently deleted user

So that means each time, I have to remove the 'const' manually in definition and implementation? Why is it on by default?

Thank you!

1
Avatar
Permanently deleted user

I'm also "suffering" with this feature. Now I need to manually remove 'const' every time from class declaration and definition.

0

Please sign in to leave a comment.