mita icon indicating copy to clipboard operation
mita copied to clipboard

Merge generated code instead of overwriting it

Open wegendt-bosch opened this issue 6 years ago • 0 comments

If users modify the generated C code they can no longer use Mita as that would overwrite their changes. Our goal however, is to provide a jump-start for C development should the user choose to do so. Thus, we need to introduce means to merge the user-made changes and the code we're generating.

We could use the TextStreamMerger of the team plugin to perform the merge of newly generated files. If the merge fails, the code generation fails or we bring up a merge dialog (difficult if we ever introduce command line tooling).

wegendt-bosch avatar Apr 25 '18 14:04 wegendt-bosch