mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-21 19:35:28 -05:00
diagnostics/libcpp: convert enum location_aspect to enum class
Modernization; no functional change intended. gcc/ChangeLog: * diagnostics/paths-output.cc: Update for conversion of location_aspect to enum class. * diagnostics/source-printing.cc: Likewise. * input.cc: Likewise. * input.h: Likewise. libcpp/ChangeLog: * include/line-map.h (enum location_aspect): Convert to... (enum class location_aspect): ...this. * line-map.cc: Update for conversion of location_aspect to enum class. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
This commit is contained in:
@@ -1459,11 +1459,11 @@ void line_table_dump (FILE *, const line_maps *,
|
||||
|
||||
/* An enum for distinguishing the various parts within a location_t. */
|
||||
|
||||
enum location_aspect
|
||||
enum class location_aspect
|
||||
{
|
||||
LOCATION_ASPECT_CARET,
|
||||
LOCATION_ASPECT_START,
|
||||
LOCATION_ASPECT_FINISH
|
||||
caret,
|
||||
start,
|
||||
finish
|
||||
};
|
||||
|
||||
/* The rich_location class requires a way to expand location_t instances.
|
||||
|
||||
Reference in New Issue
Block a user