2023-03-12 18:34:55 -07:00
# refactor
A code identifier refactoring app. Intended for c/c++ like identifiers.
Parameters :
2023-03-13 17:17:12 -07:00
* `-src` : Source file to refactor
* `-dst` : Destination file after the refactor (omit to use the same as source)
* `-spec` : Specification containing rules to use for the refactor.
2023-03-12 18:34:55 -07:00
Syntax :
* `not` Omit word or namespace.
* `word` Fixed sized identifier.
* `namespace` Variable sized identifiers, mainly intended to redefine c-namespace of an identifier.
* `,` is used to delimit arguments to word or namespace.
* `L-Value` is the signature to modify.
* `R-Value` is the substitute ( only available if rule does not use `not` keyword )
TODO:
* Possibly come up with a better name.
2023-03-13 17:17:12 -07:00
* Cleanup memory usage (it hogs quite a bit for what it does..)
2023-03-12 19:46:08 -07:00
* Split lines of file and refactor it that way instead (better debug, problably negligable performance loss, worst case can have both depending on build type)
2023-03-13 17:17:12 -07:00
* Accept multiple files at once `-files`
2023-03-12 19:46:08 -07:00