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

Out of range when deleting last parameter to macro #46

Open thoni56 opened 5 years ago

thoni56 commented 5 years ago

It seems that we you use the refactoring "Delete Parameter" on a macro and you remove parameter nr (meaning the last argument) somewhere there's an out of range thrown.

I have not made extensive investigations on if there are other conditions that are required for this to happen. In the two instanced that I have tried it, it failed.

thoni56 commented 5 years ago

There is a test case started in order to automate and explore the exposure of this bug in tests/delete_last_parameter.