thoni56 / c-xrefactory

A refactoring tool for C/Yacc and Emacs. The first tool to cross Refactory Rubicon. Initial work, and released under GPL in 2009, by Marián Vittek.
https://thoni56.github.io/c-xrefactory/
GNU General Public License v2.0
23 stars 4 forks source link

Give menu for deleting parameter #57

Open thoni56 opened 4 years ago

thoni56 commented 4 years ago

The current "give number of argument to remove" is not the best approach. A list of formal argument names would be so much better.

shanemd commented 1 year ago

Possibly a different feature request, but it would also be helpful to be able to remove a parameter 'at point' instead of having to place point on the function name.

thoni56 commented 1 year ago

Yes, it would seem that traversing "up" to find the relevant function should not be a huge problem. However, since c-xrefactory doesn't actually build an AST it is not that straight forward. And I'm the first to admit to not knowing enough of how, or if, that would be possible.