Skip to content

Rename include/extractor/name_table.hpp to string_table.hpp#7417

Merged
DennisOSRM merged 3 commits intoclaude/rename-name-table-and-propertiesfrom
copilot/rename-extractor-name-table
Mar 20, 2026
Merged

Rename include/extractor/name_table.hpp to string_table.hpp#7417
DennisOSRM merged 3 commits intoclaude/rename-name-table-and-propertiesfrom
copilot/rename-extractor-name-table

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 20, 2026

The file include/extractor/name_table.hpp already contained the StringTable/StringTableImpl implementation (including a STRING_TABLE include guard), but the filename still said name_table. This renames the file to match its actual contents.

Changes

  • New canonical header: include/extractor/string_table.hpp — the StringTable implementation now lives here
  • Forwarding shim: include/extractor/name_table.hpp replaced with a deprecated #include "extractor/string_table.hpp" wrapper for backward compatibility
  • Include updates: All 20 direct #include "extractor/name_table.hpp" references updated across include/extractor/, include/guidance/, include/storage/, include/util/guidance/, and src/
  • Unit test rename: unit_tests/extractor/name_table.cppstring_table.cpp; updated suite/case names, helper function (PrapareNameTableDataPrepareStringTableData, also fixes a pre-existing typo), and type references (NameTableStringTable)
Original prompt

Rename include/extractor/name_table.hpp to string_table.hpp to match the intent of the pull request. Change includes as needed.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Rename extractor name_table.hpp to string_table.hpp Rename include/extractor/name_table.hpp to string_table.hpp Mar 20, 2026
Copilot AI requested a review from DennisOSRM March 20, 2026 18:50
@DennisOSRM DennisOSRM marked this pull request as ready for review March 20, 2026 21:51
@DennisOSRM DennisOSRM merged commit 0ee2ff7 into claude/rename-name-table-and-properties Mar 20, 2026
@DennisOSRM DennisOSRM deleted the copilot/rename-extractor-name-table branch March 20, 2026 21:51
DennisOSRM added a commit that referenced this pull request Mar 22, 2026
* Initial plan

* Rename NameTable to PreDatafacadeStringViewer and name_id to string_view_id

Co-authored-by: DennisOSRM <1067895+DennisOSRM@users.noreply.github.com>

* Simplify naming: rename PreDatafacadeStringViewer to StringTable

Co-authored-by: DennisOSRM <1067895+DennisOSRM@users.noreply.github.com>

* Fix clang-format for node_based_edge.hpp

Co-authored-by: DennisOSRM <1067895+DennisOSRM@users.noreply.github.com>

* Fix compilation errors after name_id→string_view_id and NameTableImpl→StringTableImpl rename

- Replace detail::NameTableImpl with detail::StringTableImpl in serialization.hpp
- Replace NodeBasedEdgeAnnotation::name_id with string_view_id across all
  affected files: node_data_container.hpp, graph_compressor.cpp,
  extraction_containers.cpp, node_based_graph_factory.cpp,
  node_based_graph_walker.cpp, mergable_road_detector.cpp,
  intersection_handler.cpp/.hpp, motorway_handler.cpp,
  sliproad_handler.cpp, turn_handler.cpp, roundabout_handler.cpp,
  segregated_intersection_classification.cpp, is_through_street.hpp

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Apply clang-format line wrapping to string_view_id call sites

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Fix unit test compilation

* Rename `include/extractor/name_table.hpp` to `string_table.hpp` (#7417)

* Fix formatting

---------

Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com>
Co-authored-by: DennisOSRM <1067895+DennisOSRM@users.noreply.github.com>
Co-authored-by: Dennis Luxen <info@project-osrm.org>
Co-authored-by: Dennis Luxen <ich@dennisluxen.de>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants