On Mon, 17 Feb 2025 15:13:21 -0500
David Malcolm <dmalc...@redhat.com> wrote:

> > How do I do that?  I barely know the term; I have to look it up
> > every time.  I don't find "sarif" anywhere in gcc.info or
> > gccint.info.  
> 
> (caveat: SARIF is one of my particular interests and thus I'm biased
> towards it; not a blocker for first release, but needs to eventually
> work)

Features need champions, right?  

> It's been in gcc.info since GCC 13, 

Indeed, my bad.  

> $ info build/gcc/doc/gccint.info | grep -iw sarif
> 'scan-sarif-file REGEXP [{ target/xfail SELECTOR }]'
>      '-fdiagnostics-format=sarif-file'.
> 'scan-sarif-file-not REGEXP [{ target/xfail SELECTOR }]'
>      '-fdiagnostics-format=sarif-file'.

I was referencing gcc-11 while wandering in the desert, apparently.  

> In trunk, add
>   -fdiagnostics-add-output=sarif,

I'll be sure to do this during the warning-enumeration task. 

--jkl

Reply via email to