From 044ad200e5dcc4233e63ce6437a2532eb1795352 Mon Sep 17 00:00:00 2001 From: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> Date: Mon, 3 Oct 2022 15:48:39 +0300 Subject: [PATCH] chore: move NO_LOCATION const to location_t --- include/utils/location.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/utils/location.hh b/include/utils/location.hh index e7266aa..0257414 100644 --- a/include/utils/location.hh +++ b/include/utils/location.hh @@ -4,6 +4,8 @@ namespace ppc { struct location_t { + static const location_t NONE; + std::size_t line; std::size_t start; std::size_t length; @@ -22,6 +24,4 @@ namespace ppc { location_t(std::size_t line, std::size_t start, std::size_t code_start, std::size_t length); location_t(std::string filename, std::size_t line, std::size_t start, std::size_t code_start, std::size_t length); }; - - static const location_t NO_LOCATION = { }; } \ No newline at end of file