Lines Matching refs:parse_idl
18 sub parse_idl($)
26 like(parse_idl(""), qr/\/\* header auto-generated by pidl \*\/\n/sm, "includes work");
27 like(parse_idl("interface x {}"), qr/\/\* header auto-generated by pidl \*\/\n/sm, "simple empty interface doesn't cause overhead");
28 like(parse_idl("interface p { typedef struct { int y; } x; };"),
30 like(parse_idl("interface p { typedef struct { int y; } x; };"),
32 like(parse_idl("interface x { void foo (void); };"),
34 like(parse_idl("interface x { void foo ([in] uint32 x); };"),
36 like(parse_idl("interface x { void foo ([out] uint32 x); };"),
38 like(parse_idl("interface x { void foo ([in,out] uint32 x); };"),
40 like(parse_idl("interface x { void foo (uint32 x); };"), qr/struct foo.*{.*struct\s+{\s+uint32_t x;\s+} in;\s+struct\s+{\s+uint32_t x;\s+} out;.*};/sm, "fn with no props implies in,out");
41 like(parse_idl("interface p { struct x { int y; }; };"),
44 like(parse_idl("interface p { struct x { struct y z; }; };"),
47 like(parse_idl("interface p { struct x { union y z; }; };"),
50 like(parse_idl("interface p { struct x { }; };"),
53 like(parse_idl("interface p { struct x; };"),
56 like(parse_idl("interface p { typedef struct x { int p; } x; };"),
59 like(parse_idl("cpp_quote(\"some-foo\")"),