GH-2920: Don't warn on uninitialized container options

This commit is contained in:
Tim Wojtulewicz 2023-04-03 15:52:49 -07:00
parent c5ce82143a
commit fcf7af259c
6 changed files with 46 additions and 2 deletions

View file

@ -1024,7 +1024,7 @@ inline bool IsString(TypeTag t)
return (t == TYPE_STRING);
}
// True if the given type is a container aggregate.
// True if the given type is an aggregate.
inline bool IsAggr(TypeTag tag)
{
return tag == TYPE_VECTOR || tag == TYPE_TABLE || tag == TYPE_RECORD;
@ -1038,6 +1038,12 @@ inline bool IsAggr(const TypePtr& t)
return IsAggr(t->Tag());
}
// True if the given type is a container.
inline bool IsContainer(TypeTag tag)
{
return tag == TYPE_VECTOR || tag == TYPE_TABLE;
}
// True if the given type tag corresponds to the error type.
inline bool IsErrorType(TypeTag t)
{