diff options
author | David Malcolm <dmalcolm@redhat.com> | 2024-07-09 11:22:32 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2024-07-09 11:22:32 -0400 |
commit | 2d6e6a77e840b7b93d1f18708aa08ced8b46282e (patch) | |
tree | 896d159d1815e6db17c0d6b69107d013bf5d5e32 /gcc/doc | |
parent | 959c168e77f2e1a02b086536c69c99f7413e08bf (diff) | |
download | gcc-2d6e6a77e840b7b93d1f18708aa08ced8b46282e.zip gcc-2d6e6a77e840b7b93d1f18708aa08ced8b46282e.tar.gz gcc-2d6e6a77e840b7b93d1f18708aa08ced8b46282e.tar.bz2 |
diagnostics: use refs rather than pointers for diagnostic_{path,context}
Use const & rather than const * in various places where it can't be null
and can't change.
No functional change intended.
gcc/ChangeLog:
* diagnostic-path.cc: Replace "const diagnostic_path *" with
"const diagnostic_path &" throughout, and "diagnostic_context *"
with "diagnostic context &".
* diagnostic.cc (diagnostic_context::show_any_path): Pass
reference in call to print_path.
* diagnostic.h (diagnostic_context::print_path): Convert param
to a reference.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/doc')
0 files changed, 0 insertions, 0 deletions