]> git.ipfire.org Git - thirdparty/gcc.git/commit
diagnostics: convert enum logical_location_kind to enum class
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 9 Jun 2025 18:15:25 +0000 (14:15 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Mon, 9 Jun 2025 18:15:25 +0000 (14:15 -0400)
commitbf0c6e1d34fd9cab0bef4d260f7e482e5fd4a371
treec101882e0823ffd027868b5cdfdce57fa8bc4c05
parent639a147414ab2b870f9482123fcaa1821e0d5475
diagnostics: convert enum logical_location_kind to enum class

No functional change intended.

gcc/ChangeLog:
* diagnostic-format-sarif.cc (maybe_get_sarif_kind): Update for
conversion of enum logical_location_kind to enum class.
* diagnostic.cc (logical_location_manager::function_p): Likewise.
* libgdiagnostics.cc (html-output/missing-semicolon.py::get_kind):
Likewise.
* logical-location.h (enum logical_location_kind): Convert to...
(enum class logical_location_kind): ...this.
* selftest-logical-location.cc
(test_logical_location_manager::item_from_funcname): Update for
conversion of enum logical_location_kind to enum class.
* tree-logical-location.cc
(tree_logical_location_manager::get_kind): Likewise.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/diagnostic-format-sarif.cc
gcc/diagnostic.cc
gcc/libgdiagnostics.cc
gcc/logical-location.h
gcc/selftest-logical-location.cc
gcc/tree-logical-location.cc