https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118675

--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Malcolm <dmalc...@gcc.gnu.org>:

https://gcc.gnu.org/g:b4bd06774ced72d5f0059ec55022840ad3f37fa4

commit r15-7255-gb4bd06774ced72d5f0059ec55022840ad3f37fa4
Author: David Malcolm <dmalc...@redhat.com>
Date:   Tue Jan 28 10:36:53 2025 -0500

    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 <dmalc...@redhat.com>

Reply via email to