I have a comment template in Eclipse (CDT) that I use to call functions that look like this:
//****************************************************************************
//
// Function: ${enclosing_method}
//
// Purpose:
//
// Parameters:
//
//****************************************************************************
My problem is that the template variable ${enclosing_method}does not work MOST time, but in other cases this happens, and I still have to find out why. I tried to use the comment template inside the function and outside (over) the function definition even in the same header file. I prefer him to be upstairs and see how he works in this position, but again I don’t know why.
What prerequisites must be met for the includeing_method variable to automatically put the name in the comment?
Thanks in advance for any information you can provide.