IPCCompiler: Mark size_t as a primitive type

This allows size_t to be used within an IPC message without being passed
by const-reference.
This commit is contained in:
Timothy Flynn 2022-12-02 16:13:47 -05:00 committed by Andreas Kling
parent 8fcb8c30c6
commit 3a915483b0
Notes: sideshowbarker 2024-07-17 03:41:02 +09:00

View file

@ -63,7 +63,7 @@ struct Endpoint {
static bool is_primitive_type(DeprecatedString const& type)
{
return type.is_one_of("u8", "i8", "u16", "i16", "u32", "i32", "u64", "i64", "bool", "double", "float", "int", "unsigned", "unsigned int");
return type.is_one_of("u8", "i8", "u16", "i16", "u32", "i32", "u64", "i64", "size_t", "bool", "double", "float", "int", "unsigned", "unsigned int");
}
static bool is_simple_type(DeprecatedString const& type)