]> gcc.gnu.org Git - gcc.git/commit
diagnostics: disable localization of events in selftest paths [PR115203]
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 28 May 2024 17:04:26 +0000 (13:04 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 28 May 2024 17:04:26 +0000 (13:04 -0400)
commit2dbb1c124c1e585dc413132d7a8d4be62c6b7baa
tree811abafc6c4d1c86bc2fc736d0e2b695c8f9bc97
parentb544ff88560e100e53ed8966d38f172c5bafce8d
diagnostics: disable localization of events in selftest paths [PR115203]

gcc/ChangeLog:
PR analyzer/115203
* diagnostic-path.h
(simple_diagnostic_path::disable_event_localization): New.
(simple_diagnostic_path::m_localize_events): New field.
* diagnostic.cc
(simple_diagnostic_path::simple_diagnostic_path): Initialize
m_localize_events.
(simple_diagnostic_path::add_event): Only localize fmt if
m_localize_events is true.
* tree-diagnostic-path.cc
(test_diagnostic_path::test_diagnostic_path): Call
disable_event_localization.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/diagnostic-path.h
gcc/diagnostic.cc
gcc/tree-diagnostic-path.cc
This page took 0.060534 seconds and 6 git commands to generate.