aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic-format-json.cc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2024-07-24 18:07:52 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2024-07-24 18:07:52 -0400
commit5342c63f4fb49c110c6252538cb954779c6ff156 (patch)
tree579e90b02c3d6536e5b60444dbd6d963e8b7ffa5 /gcc/diagnostic-format-json.cc
parentda0def223e82a4a9400915b2957e96f9f060f5af (diff)
downloadgcc-5342c63f4fb49c110c6252538cb954779c6ff156.zip
gcc-5342c63f4fb49c110c6252538cb954779c6ff156.tar.gz
gcc-5342c63f4fb49c110c6252538cb954779c6ff156.tar.bz2
diagnostics: SARIF output: add sarif_object subclasses throughout
No functional change intended. gcc/ChangeLog: * diagnostic-format-sarif.cc: Introduce subclasses of sarif_object for all aspects of the spec that we're using. Replace almost all usage of json::object with uses of these subclasses, the only remaining use of json::object being for originalUriBaseIds, as per SARIF 2.1.0 ยง3.14.14. This stronger typing makes it considerably easier to maintain validity against the schema. * diagnostic-format-sarif.h (class sarif_logical_location): New. (make_sarif_logical_location_object): Convert return type from json::object * to sarif_logical_location *. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/diagnostic-format-json.cc')
0 files changed, 0 insertions, 0 deletions