diff options
author | David Malcolm <dmalcolm@redhat.com> | 2023-10-03 09:39:16 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2023-10-03 09:39:16 -0400 |
commit | c44ca7c01226e0768e58c5b274ddd5e161378010 (patch) | |
tree | 65989de19c04f19fc70f37acddc8256540744887 /gcc/cp/error.cc | |
parent | 09881218137f4af9b7c894c2d350cf2ff8e0ee23 (diff) | |
download | gcc-c44ca7c01226e0768e58c5b274ddd5e161378010.zip gcc-c44ca7c01226e0768e58c5b274ddd5e161378010.tar.gz gcc-c44ca7c01226e0768e58c5b274ddd5e161378010.tar.bz2 |
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>
Diffstat (limited to 'gcc/cp/error.cc')
-rw-r--r-- | gcc/cp/error.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/error.cc b/gcc/cp/error.cc index 8a5219a..ef96e14 100644 --- a/gcc/cp/error.cc +++ b/gcc/cp/error.cc @@ -4454,10 +4454,10 @@ cp_printer (pretty_printer *pp, text_info *text, const char *spec, const char *result; tree t = NULL; -#define next_tree (t = va_arg (*text->args_ptr, tree)) -#define next_tcode ((enum tree_code) va_arg (*text->args_ptr, int)) -#define next_lang ((enum languages) va_arg (*text->args_ptr, int)) -#define next_int va_arg (*text->args_ptr, int) +#define next_tree (t = va_arg (*text->m_args_ptr, tree)) +#define next_tcode ((enum tree_code) va_arg (*text->m_args_ptr, int)) +#define next_lang ((enum languages) va_arg (*text->m_args_ptr, int)) +#define next_int va_arg (*text->m_args_ptr, int) if (precision != 0 || wide) return false; |