From 5cf8d18742653d018a4d4a41a5a54075fa7cce4a Mon Sep 17 00:00:00 2001 From: Riyyi Date: Mon, 8 Aug 2022 21:42:50 +0200 Subject: [PATCH] Util: Add container type to Parser --- src/util/format/parser.cpp | 2 ++ src/util/format/parser.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/util/format/parser.cpp b/src/util/format/parser.cpp index 7e1cdfb..1c1447a 100644 --- a/src/util/format/parser.cpp +++ b/src/util/format/parser.cpp @@ -383,6 +383,8 @@ constexpr void Parser::checkSpecifierType(const Specifier& specifier, ParameterT case ParameterType::Pointer: checkSpecifierPointerType(specifier); break; + case ParameterType::Container: + break; default: VERIFY_NOT_REACHED(); } diff --git a/src/util/format/parser.h b/src/util/format/parser.h index 9298ca9..475fc19 100644 --- a/src/util/format/parser.h +++ b/src/util/format/parser.h @@ -31,6 +31,7 @@ public: CString, String, Pointer, + Container, }; Parser(std::string_view format, size_t parameterCount);