Re: [PATCH] cobol: set SARIF "artifact.sourceLanguage" property

2024-12-14 Thread David Malcolm
On Sat, 2024-12-14 at 19:20 -0500, David Malcolm wrote: > With this patch, -fdiagnostics-format=sarif-stderr emits: > >    "sourceLanguage": "cobol" > > for its artifacts, as per Appendix J of the SARIF spec. > > gcc/ChangeLog: > * cobol/cobol1.cc (cobol_get_sarif_source_language): New. >

[PATCH] cobol: set SARIF "artifact.sourceLanguage" property

2024-12-14 Thread David Malcolm
With this patch, -fdiagnostics-format=sarif-stderr emits: "sourceLanguage": "cobol" for its artifacts, as per Appendix J of the SARIF spec. gcc/ChangeLog: * cobol/cobol1.cc (cobol_get_sarif_source_language): New. (LANG_HOOKS_GET_SARIF_SOURCE_LANGUAGE): Set it to the above. Si