> -----Original Message-----
> From: Hyrum K Wright [mailto:hyrum_at_hyrumwright.org]
> Sent: maandag 2 mei 2011 14:46
> To: Daniel Shahaf
> Cc: dev_at_subversion.apache.org
> Subject: Re: svn commit: r1098204 -
> /subversion/trunk/subversion/libsvn_wc/questions.c
>
> On Sun, May 1, 2011 at 2:38 AM, Daniel Shahaf <d.s_at_daniel.shahaf.name>
> wrote:
> > Nice series of patches tonight --- what tool / gcc flags did you use
> > to catch them?
>
> I've been playing around with clang-analyzer, a static analyzer that
> is part of llvm:
> http://clang-analyzer.llvm.org/
>
> There are still a lot of false positives (it has trouble grokking our
> SVN_ERR_ASSERT() macro), but it's been useful to find the kinds of
> problems fixed in my patches the last few days.
>
> At some point, it might be useful to set up a nightly buildbot to
> automatically run static analysis on a regular basis.
Maybe you can #define SVN_ERR_ASSERT() to assert() for clang?
(It might even use assert() as a hint to improve results)
Bert
Received on 2011-05-02 15:21:41 CEST