Rename variables in doxygen comments.

已回答

Hi!

CLion searches for variables/defines in comments, but does not find in doxygen comments. That's weird for me. I do not understand, is it a bug or a feature?

How to make the renaming operation look for variables everywhere?
 

Example:

#define MY_DEFINE 1

/**
* There is a lot of text.
* There is link to MY_DEFINE. It will not be renamed.
*/
int foo()
{
return MY_DEFINE; //Here it will be renamed: MY_DEFINE
}

 

Thanks!

 

 

0

Hello!

In case of Rename refactoring, CLion updates Doxygen comments along with other references. This applies to renaming a function or its parameters (please see an example).

I'm not sure what you mean by "There is link to MY_DEFINE". I assume, it's not referenced via @param, so it's not the supported case of renaming described above. Feel free to create a feature request in our tracker: https://youtrack.jetbrains.com/issues/CPP.

 

0

请先登录再写评论。