]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/analyzer/analyzer.cc
diagnostics: add ctors to text_info; add m_ prefixes to fields
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 3 Oct 2023 13:39:16 +0000 (09:39 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Tue, 3 Oct 2023 13:39:16 +0000 (09:39 -0400)
commitc44ca7c01226e0768e58c5b274ddd5e161378010
tree65989de19c04f19fc70f37acddc8256540744887
parent09881218137f4af9b7c894c2d350cf2ff8e0ee23
diagnostics: add ctors to text_info; add m_ prefixes to fields

No functional change intended.

gcc/ada/ChangeLog:
* gcc-interface/misc.cc: Use text_info ctor.

gcc/analyzer/ChangeLog:
* analyzer-logging.cc (logger::log_va_partial): Use text_info
ctor.
* analyzer.cc (make_label_text): Likewise.
(make_label_text_n): Likewise.
* pending-diagnostic.cc (evdesc::event_desc::formatted_print):
Likewise.

gcc/c/ChangeLog:
* c-objc-common.cc (c_tree_printer): Update for "m_" prefixes to
text_info fields.

gcc/cp/ChangeLog:
* error.cc: Update for "m_" prefixes to text_info fields.

gcc/d/ChangeLog:
* d-diagnostic.cc (d_diagnostic_report_diagnostic): Use text_info
ctor.

gcc/ChangeLog:
* diagnostic.cc (diagnostic_set_info_translated): Update for "m_"
prefixes to text_info fields.
(diagnostic_report_diagnostic): Likewise.
(verbatim): Use text_info ctor.
(simple_diagnostic_path::add_event): Likewise.
(simple_diagnostic_path::add_thread_event): Likewise.
* dumpfile.cc (dump_pretty_printer::decode_format): Update for
"m_" prefixes to text_info fields.
(dump_context::dump_printf_va): Use text_info ctor.
* graphviz.cc (graphviz_out::graphviz_out): Use text_info ctor.
(graphviz_out::print): Likewise.
* opt-problem.cc (opt_problem::opt_problem): Likewise.
* pretty-print.cc (pp_format): Update for "m_" prefixes to
text_info fields.
(pp_printf): Use text_info ctor.
(pp_verbatim): Likewise.
(assert_pp_format_va): Likewise.
* pretty-print.h (struct text_info): Add ctors.  Add "m_" prefix
to all fields.
* text-art/styled-string.cc (styled_string::from_fmt_va): Use
text_info ctor.
* tree-diagnostic.cc (default_tree_printer): Update for "m_"
prefixes to text_info fields.
* tree-pretty-print.h (pp_ti_abstract_origin): Likewise.

gcc/fortran/ChangeLog:
* error.cc (gfc_format_decoder): Update for "m_" prefixes to
text_info fields.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
17 files changed:
gcc/ada/gcc-interface/misc.cc
gcc/analyzer/analyzer-logging.cc
gcc/analyzer/analyzer.cc
gcc/analyzer/pending-diagnostic.cc
gcc/c/c-objc-common.cc
gcc/cp/error.cc
gcc/d/d-diagnostic.cc
gcc/diagnostic.cc
gcc/dumpfile.cc
gcc/fortran/error.cc
gcc/graphviz.cc
gcc/opt-problem.cc
gcc/pretty-print.cc
gcc/pretty-print.h
gcc/text-art/styled-string.cc
gcc/tree-diagnostic.cc
gcc/tree-pretty-print.h