Re: llvm / clang / scan-build of the Hurd
Justus Winter, le Tue 22 Oct 2013 17:12:54 +0200, a écrit :
> Note the "", on my linux box that reads "/usr/bin/clang"
> instead. Thoughts?
I've noticed that in the llvm toolchain things are
missing/missconfigured indeed. That's probably related.
> The static analyzer is good at spotting errors, see [0] for a partial
> build of the Hurd using scan-build.
They seem worth having a look at indeed.
> Clang does not support nested functions [1],
> iiuc [...] the semantic is not too well defined.
> I propose to deprecate their use for the Hurd and to gradually rewrite
> the code that uses them, starting with the core libraries, to make it
> possible to analyze them using the static analyzer.
If it's not too hard, it can be useful to get better exposure to
static analysis indeed. Nested functions are however sometimes really
convenient, that may not be always easy to replace.
Samuel
Reply to: