aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2025-01-28 10:36:53 -0500
committerDavid Malcolm <dmalcolm@redhat.com>2025-01-28 10:36:53 -0500
commitb4bd06774ced72d5f0059ec55022840ad3f37fa4 (patch)
tree48f3bce7badcfc97a1baa6280d43e97df162eeb8 /gcc/expr.cc
parent98b2009b8768f8790dff9edbe00742bcdf2b7482 (diff)
downloadgcc-b4bd06774ced72d5f0059ec55022840ad3f37fa4.zip
gcc-b4bd06774ced72d5f0059ec55022840ad3f37fa4.tar.gz
gcc-b4bd06774ced72d5f0059ec55022840ad3f37fa4.tar.bz2
sarif output: escape braces in messages [PR118675]
gcc/ChangeLog: PR other/118675 * diagnostic-format-sarif.cc: Define INCLUDE_STRING. (escape_braces): New. (set_string_property_escaping_braces): New. (sarif_builder::make_message_object): Escape braces in the "text" property. (sarif_builder::make_message_object_for_diagram): Likewise, and for the "markdown" property. (sarif_builder::make_multiformat_message_string): Likewise for the "text" property. (xelftest::test_message_with_braces): New. (selftest::diagnostic_format_sarif_cc_tests): Call it. gcc/testsuite/ChangeLog: PR other/118675 * gcc.dg/sarif-output/bad-binary-op.py: Update expected output for escaping of braces in message text. * gcc.dg/sarif-output/missing-semicolon.py: Likewise. * gcc.dg/sarif-output/multiple-outputs.py: Likewise. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions