diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-07-15 17:23:42 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-07-15 17:23:42 +0200 |
| commit | e7265af15f77abf60a899b3d53a59652b5ca71ea (patch) | |
| tree | 50b5594c4517da87b185268e709194e964c236af /boot/driver.cc | |
| parent | 308a2addf655fe45f2098f8542f0ff1290612cd9 (diff) | |
| download | elna-e7265af15f77abf60a899b3d53a59652b5ca71ea.tar.gz | |
Track identifier positions for the diagnostics
Diffstat (limited to 'boot/driver.cc')
| -rw-r--r-- | boot/driver.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/driver.cc b/boot/driver.cc index b51da32..8dc95f8 100644 --- a/boot/driver.cc +++ b/boot/driver.cc @@ -19,14 +19,14 @@ along with GCC; see the file COPYING3. If not see namespace elna::boot { - position make_position(const yy::location& location) + source_position make_position(const yy::location& location) { auto start_location = boot::location(static_cast<std::size_t>(location.begin.line), static_cast<std::size_t>(location.begin.column)); auto end_location = boot::location(static_cast<std::size_t>(location.end.line), static_cast<std::size_t>(location.end.column)); - return position(start_location, end_location); + return source_position(start_location, end_location); } syntax_error::syntax_error(const std::string& message, const yy::location& location) |
