Re: [PATCH 01/12] diagnostics: add ability to associate diagnostics with rules from coding standards

2022-06-23 Thread David Malcolm via Gcc-patches
On Wed, 2022-06-22 at 18:34 -0400, David Malcolm wrote: > gcc/ChangeLog: > * common.opt (fdiagnostics-show-rules): New option. > * diagnostic-format-json.cc > (diagnostic_output_format_init_json): > Fix up context->show_rules. > * diagnostic-format-sarif.cc >    

[PATCH 01/12] diagnostics: add ability to associate diagnostics with rules from coding standards

2022-06-22 Thread David Malcolm via Gcc-patches
gcc/ChangeLog: * common.opt (fdiagnostics-show-rules): New option. * diagnostic-format-json.cc (diagnostic_output_format_init_json): Fix up context->show_rules. * diagnostic-format-sarif.cc (diagnostic_output_format_init_sarif): Likewise. * diagnostic