Reply To: Returning strings from C functions

homepage Forums BridgePoint/xtUML Usage and Training Returning strings from C functions Reply To: Returning strings from C functions

#3179
Erik Wedin
Participant

It is also important to find an approach the static and run-time analysis tools accepts as erroneous free code.

We are running continuos analysis of our generated code with “cppcheck” (http://cppcheck.sourceforge.net/) and currently the generated MC3020 triggers a large number of warnings/errors. Some that are valid and some that are not due to the xtUML semantics like instance selections via unconditional associations that would (should) not return a null pointer.

We are using “Valgrind” to perform run-time checks and it flags the return of strings from functions as erroneous.