diff options
| author | Auke Booij <auke@tulcod.com> | 2015-10-26 19:39:52 +0000 |
|---|---|---|
| committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-11-04 14:51:43 -0800 |
| commit | 1771299a5a965c1f95c18ef795c29db876133a81 (patch) | |
| tree | cc64a942ed5b7ad3635b94f8ef408dee902d3ad0 /tests/cpp-compile-test.cpp | |
| parent | protocol: specify enum and bitfield attributes (diff) | |
| download | wayland-1771299a5a965c1f95c18ef795c29db876133a81.tar wayland-1771299a5a965c1f95c18ef795c29db876133a81.tar.gz wayland-1771299a5a965c1f95c18ef795c29db876133a81.tar.bz2 wayland-1771299a5a965c1f95c18ef795c29db876133a81.tar.lz wayland-1771299a5a965c1f95c18ef795c29db876133a81.tar.xz wayland-1771299a5a965c1f95c18ef795c29db876133a81.tar.zst wayland-1771299a5a965c1f95c18ef795c29db876133a81.zip | |
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: Auke Booij <auke@tulcod.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Nils Chr. Brause <nilschrbrause@googlemail.com>
Diffstat (limited to 'tests/cpp-compile-test.cpp')
0 files changed, 0 insertions, 0 deletions
