]> git.ipfire.org Git - thirdparty/gcc.git/commit
diagnostics: tweak output for nested messages [PR116253]
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 11 Dec 2024 15:21:35 +0000 (10:21 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Wed, 11 Dec 2024 15:21:35 +0000 (10:21 -0500)
commit331226fd87c2010928329ef35b6d4f680d9234d1
tree746bebcfc6fa665045e1d3bcfe58772901897428
parente4ef3aa2911f1a1548089712b0bf34c812c19438
diagnostics: tweak output for nested messages [PR116253]

When printing nested messages with
-fdiagnostics-set-output=text:experimental-nesting=yes
avoid printing a line such as the "cc1plus:" in the following:
        • note: set ‘-fconcepts-diagnostics-depth=’ to at least 2 for more detail
          cc1plus:
for "special" locations such as UNKNOWN_LOCATION.

gcc/ChangeLog:
PR other/116253
* diagnostic-format-text.cc (on_report_diagnostic): When showing
locations for nested messages on new lines, don't print
UNKNOWN_LOCATION or BUILTINS_LOCATION.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/diagnostic-format-text.cc