]> git.ipfire.org Git - thirdparty/gcc.git/commit
libcpp: split decls out to rich-location.h
authorDavid Malcolm <dmalcolm@redhat.com>
Sun, 19 Nov 2023 11:26:40 +0000 (06:26 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Sun, 19 Nov 2023 11:26:40 +0000 (06:26 -0500)
commit78d132d73ec3784a77b3e2391a540bcdae714bb0
tree2e9ff8838a5c3f6c108b3e4a03788a55e91d181c
parentaf7fa3135b6b046fe3ba869993221042a65301eb
libcpp: split decls out to rich-location.h

The various decls relating to rich_location are in
libcpp/include/line-map.h, but they don't relate to line maps.

Split them out to their own header: libcpp/include/rich-location.h

No functional change intended.

gcc/ChangeLog:
* Makefile.in (CPPLIB_H): Add libcpp/include/rich-location.h.
* coretypes.h (class rich_location): New forward decl.

gcc/analyzer/ChangeLog:
* analyzer.h: Include "rich-location.h".

gcc/c-family/ChangeLog:
* c-lex.cc: Include "rich-location.h".

gcc/cp/ChangeLog:
* mapper-client.cc: Include "rich-location.h".

gcc/ChangeLog:
* diagnostic.h: Include "rich-location.h".
* edit-context.h (class fixit_hint): New forward decl.
* gcc-rich-location.h: Include "rich-location.h".
* genmatch.cc: Likewise.
* pretty-print.h: Likewise.

gcc/rust/ChangeLog:
* rust-location.h: Include "rich-location.h".

libcpp/ChangeLog:
* Makefile.in (TAGS_SOURCES): Add "include/rich-location.h".
* include/cpplib.h (class rich_location): New forward decl.
* include/line-map.h (class range_label)
(enum range_display_kind, struct location_range)
(class semi_embedded_vec, class rich_location, class label_text)
(class range_label, class fixit_hint): Move to...
* include/rich-location.h: ...this new file.
* internal.h: Include "rich-location.h".

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
16 files changed:
gcc/Makefile.in
gcc/analyzer/analyzer.h
gcc/c-family/c-lex.cc
gcc/coretypes.h
gcc/cp/mapper-client.cc
gcc/diagnostic.h
gcc/edit-context.h
gcc/gcc-rich-location.h
gcc/genmatch.cc
gcc/pretty-print.h
gcc/rust/rust-location.h
libcpp/Makefile.in
libcpp/include/cpplib.h
libcpp/include/line-map.h
libcpp/include/rich-location.h [new file with mode: 0644]
libcpp/internal.h