[cfe-dev] new -Wuninitialized implementation in Clang
Anton Korobeynikov
anton at korobeynikov.info
Fri Feb 4 03:14:04 PST 2011
> Hmm, I would personally like to not initialize variables that I know are not
> read from, as in your above code example. I personally regard it as bad
> coding style to initialize variables with values not really used by the
> code.
Me as well. Also, think about the tools like valgrind - initializing
here will silent a warning here.
Btw, also, what's about clang analyzer? It seems, this approach will
make life of the more sophisticated tools much harder.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the cfe-dev
mailing list