cake
cake copied to clipboard
global variables with -fanalyzer
The state of non const global variables used inside functions needs to be "reset" to "unknown" each time function starts. also static variables declared inside functions.
In our code we don't use non-const globals, but there are several default initialised constant structs used to zero-init new objects. They will always have all their owning pointers null.
missing const