2024-06-28 11:41 AM
Hello, we are finding it necessary to modify generated files. We have a few different cases, but just taking the first example, we had to change generated/OSWrappers.cpp as the variant of FreeRTOS we're using has slightly different function names.
Is there a system for dealing with situations like this?
Thanks.
2024-07-01 09:55 AM - edited 2024-07-01 10:47 AM
> Good version control comes with convenient diffing and merge tools.
I think OP wanted to *generate* the right code to begin with, instead of finding better ways to maintain and apply a patchset.
> AI also will come much earlier than you think.
I, for one, welcome our new dystopian overlords. Though, we should have voted for Kang (very obscure reference, don't feel bad).
2024-07-01 10:43 AM
So what means "well defined"? Something automatic? Point and click?
2024-07-01 11:05 AM
@Pavel A. wrote:So what means "well defined"? Something automatic? Point and click?
Something other than having to go in after generation and reconcile the tool-edited version of generated file.
I was mainly wondering if there's some configuration somewhere like "don't generate this file", or a way to move the problem generated code into non-generated code. I'm hearing there is not.
Thanks everyone for the feedback.
2024-07-01 01:30 PM
Hi @farble1670
Is python script not an option ? Or even a Windows batch file could do that I recon - string find&replace. I got something similar running pretty qiuckly (mostly programmed by GPT).
2024-07-01 01:42 PM - edited 2024-07-01 01:45 PM
> I was mainly wondering if there's some configuration somewhere like "don't generate this file",
really? because you never asked that question. There are some knobs for controlling some of that, for peripherals.
Also "don't generate" is quite easy to do by just deleting with a post-generation script. if that's what you mean.