Re:OpenMandriva, the first Clang-built Linux distribution
by ndesaulniers on Sunday June 16, 2019 @05:06PM
(#20197893)
Because static analyzers today are imprecise. We're considering where this makes sense to turn on in Android, and even within the Linux kernel.
Re:OpenMandriva, the first Clang-built Linux distribution
by carlmr on Sunday June 16, 2019 @05:38PM
(#20198060)
If you can I would at least advise running tests using memory sanitizer, which is also built in to newer clang versions. They're much more precise, but only catch problems occurring at runtime. also adress sanitizer for the out of bounds accesses, use after free bugs, memory leaks etc.
Re:OpenMandriva, the first Clang-built Linux distribution
by ndesaulniers on Sunday June 16, 2019 @08:26PM
(#20198829)
We do. Also, the people who built msan are literally the ones implementing the initialization patterns.
Initializing values just because seems wasteful. That's why global and static variables are already initialized in this way.
For me it would yet make sense that Gcc allows it even if it's not a very good practice it may have its uses.