diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-09-11 09:11:47 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-09-11 09:11:47 +0200 |
| commit | bd2b80d6ac582b9f0bcd96c86d4b79bfdb64eca1 (patch) | |
| tree | a835a5cfe5a9cf48720b9255261e065fd7978849 /boot/result.cc | |
| parent | b27872d5c5bfecae74195771f5c1f4e73385b6d6 (diff) | |
| download | elna-bd2b80d6ac582b9f0bcd96c86d4b79bfdb64eca1.tar.gz | |
Implement aligned attribute
Diffstat (limited to 'boot/result.cc')
| -rw-r--r-- | boot/result.cc | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/boot/result.cc b/boot/result.cc index 635a121..c8ea267 100644 --- a/boot/result.cc +++ b/boot/result.cc @@ -17,7 +17,6 @@ along with GCC; see the file COPYING3. If not see #include "elna/boot/result.h" -#include <algorithm> #include <charconv> #include <cmath> #include <cstring> @@ -115,27 +114,6 @@ namespace elna::boot return this->m_name == that; } - identifier_definition::identifier_definition(const std::string& name, - const source_position& position, const bool exported) - : m_identifier(name, position), m_exported(exported) - { - } - - const std::string& identifier_definition::name() const - { - return this->m_identifier.name(); - } - - const identifier& identifier_definition::id() const - { - return this->m_identifier; - } - - bool identifier_definition::exported() const - { - return this->m_exported; - } - std::optional<diagnostic_note> previous_declaration_note( const std::optional<source_position>& original, std::string_view label, const std::filesystem::path& file) @@ -159,17 +137,6 @@ namespace elna::boot return diagnostic_note{ .message = join(identifiers), .position = position_span, .file = {} }; } - std::vector<identifier> extract_identifiers(const std::vector<identifier_definition>& identifiers) - { - std::vector<identifier> result; - result.reserve(identifiers.size()); - - std::ranges::transform(identifiers, std::back_inserter(result), - [](const auto& identifier) { return identifier.id(); }); - - return result; - } - integer_literal::integer_literal(bool is_signed, std::size_t size) : m_signed(is_signed), m_size(size) { |
