git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: clang static analyzer

From
Jeff King <peff@peff.net>
Date
Dec 6, 2009, 16:04 UTC
Message-ID
<20091206160436.GA7140@coredump.intra.peff.net>
In-Reply-To
<alpine.LFD.2.00.0912061032380.31174@xanadu.home>
On Sun, Dec 06, 2009 at 10:39:56AM -0500, Nicolas Pitre wrote:
Show 11 quoted lines
> >   2. If it is a false positive, see what it would take to silence clang
> >      and submit a patch.  I don't think we are opposed to annotations
> >      that help analysis tools as long as those annotations aren't too
> >      intrusive or make the code less readable.
> 
> I'm a bit skeptical here.  Going down that route might mean that we'll 
> eventually have to add all sort of crap to accommodate everyone's 
> preferred static analysis tool of the day.  Would be far nicer to try to 
> make those tools more intelligent instead, or at least make them 
> understand an out-of-line annotation format that does not clutter the 
> code itself.

To be clear, I am a bit skeptical, too. I would really prefer an out-of-line annotation if one is available. But I am trying to encourage the OP to actually make a patch for one instance so we can see just what it would look like. Then we actually have a data point to discuss.

-Peff
Previous: Nicolas PitreNext: Nicolas Sebrecht
Message 4 of 7 in “clang static analyzer”
  1. Tomas CarneckyDec 6, 2009
  2. Jeff KingDec 6, 2009
  3. Nicolas PitreDec 6, 2009
  4. Jeff KingDec 6, 2009
  5. Nicolas SebrechtDec 6, 2009
  6. Junio C HamanoDec 7, 2009
  7. Junio C HamanoDec 7, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.