1
General Board / Issue with code generation and synchronization with C++
« on: July 15, 2022, 06:15:52 pm »
Hello
I have found the following issue with code generation and synchronization with C++.
In preferences I have changed the default behavior by checking the “Include method bodies in model when reverse engineering”.
In Options I have chosen in Source code engineering “Replace (overwrite) existing source file.
This works fine for the most part.
But there are two issues that I have found with initialization of values.
When generating code const declared variable is not initialized in the .h file, but static variables are initialized in the .cpp file.
With synchronization the problem is the opposite.
Const variable initialization are read into the model but static initializations is not read in a to the model and the existing ones disappear.
BR Göran
I have found the following issue with code generation and synchronization with C++.
In preferences I have changed the default behavior by checking the “Include method bodies in model when reverse engineering”.
In Options I have chosen in Source code engineering “Replace (overwrite) existing source file.
This works fine for the most part.
But there are two issues that I have found with initialization of values.
When generating code const declared variable is not initialized in the .h file, but static variables are initialized in the .cpp file.
With synchronization the problem is the opposite.
Const variable initialization are read into the model but static initializations is not read in a to the model and the existing ones disappear.
BR Göran