Format: Allow user-defined types in Parser

This commit is contained in:
Riyyi
2022-08-23 16:41:27 +02:00
parent febb89be9c
commit a83615083d
4 changed files with 4 additions and 3 deletions
-2
View File
@@ -314,8 +314,6 @@ struct Formatter<Specifier> : Formatter<std::nullptr_t> {
} // namespace ruc::format
using ruc::format::Formatter;
#if 0
TODO:
+2
View File
@@ -411,6 +411,8 @@ constexpr void Parser::checkSpecifierType(const Specifier& specifier, ParameterT
case ParameterType::Container:
checkSpecifierContainerType(specifier);
break;
case ParameterType::UserDefined:
break;
default:
VERIFY_NOT_REACHED();
}
+1
View File
@@ -32,6 +32,7 @@ public:
String,
Pointer,
Container,
UserDefined,
};
Parser(std::string_view format, size_t parameterCount);
+1 -1
View File
@@ -513,5 +513,5 @@ TEST_CASE(FormatContainers)
}
// Local Variables:
// lsp-in-cpp-project-cache: nil
// lsp-in-cpp-project-cache: (nil)
// End: