Skip to content
Commit 1771299a authored by Auke Booij's avatar Auke Booij Committed by Bryce Harrington
Browse files

scanner: enforce correct argument type for enums



The scanner now checks whether arguments that have an associated
<enum> have the right type.
An argument with an enum attribute must be of type int or uint,
and if the <enum> with that name has the bitfield attribute
set to true, then the argument must be of type uint.

Changes since v3:
 - Remove useless allow_null check
 - Switch to using bool
 - Clearer message on errorous input
 - Minor formatting fix

Signed-off-by: default avatarAuke Booij <auke@tulcod.com>
Reviewed-by: default avatarBryce Harrington <bryce@osg.samsung.com>
Reviewed-by: default avatarNils Chr. Brause <nilschrbrause@googlemail.com>
parent 851614fa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment