Format: Allow user-defined types in Parser
This commit is contained in:
@@ -314,8 +314,6 @@ struct Formatter<Specifier> : Formatter<std::nullptr_t> {
|
||||
|
||||
} // namespace ruc::format
|
||||
|
||||
using ruc::format::Formatter;
|
||||
|
||||
#if 0
|
||||
|
||||
TODO:
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ public:
|
||||
String,
|
||||
Pointer,
|
||||
Container,
|
||||
UserDefined,
|
||||
};
|
||||
|
||||
Parser(std::string_view format, size_t parameterCount);
|
||||
|
||||
@@ -513,5 +513,5 @@ TEST_CASE(FormatContainers)
|
||||
}
|
||||
|
||||
// Local Variables:
|
||||
// lsp-in-cpp-project-cache: nil
|
||||
// lsp-in-cpp-project-cache: (nil)
|
||||
// End:
|
||||
|
||||
Reference in New Issue
Block a user