aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2024-07-24 18:07:52 -0400
committerThomas Koenig <tkoenig@gcc.gnu.org>2024-07-28 19:05:53 +0200
commit35bb4ff3442ce9116c5f933d431a05b2e8040f22 (patch)
treeec564efd567a507c2877b106db1a7071bb2b1247 /libcpp
parentd03459c5685287190ca623bdf355f3f80c3fd715 (diff)
downloadgcc-35bb4ff3442ce9116c5f933d431a05b2e8040f22.zip
gcc-35bb4ff3442ce9116c5f933d431a05b2e8040f22.tar.gz
gcc-35bb4ff3442ce9116c5f933d431a05b2e8040f22.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 'libcpp')
0 files changed, 0 insertions, 0 deletions