mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
GH-2920: Don't warn on uninitialized container options
This commit is contained in:
parent
c5ce82143a
commit
fcf7af259c
6 changed files with 46 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue