diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2020-05-14 04:24:32 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2020-05-14 12:58:30 +0200 |
commit | b1a1ebc918e44f4aa928878dae20fa7be6c87043 (patch) | |
tree | 3b0c3cb839aac0c2f056cc06126b1e139058312e /tests/headers/function-typedef-stdcall.h | |
parent | fcc10961dbfe128d2e592cb302316122938d7b58 (diff) |
ir: Fall back to get the cursors from the type if we find no param decls.
It seems libclang sometimes doesn't expose the right paramdecl cursors.
This should be reported upstream, but it's easy enough to workaround. It
loses the parameter names which is a bit unfortunate but...
Fixes #1778
Diffstat (limited to 'tests/headers/function-typedef-stdcall.h')
-rw-r--r-- | tests/headers/function-typedef-stdcall.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/headers/function-typedef-stdcall.h b/tests/headers/function-typedef-stdcall.h new file mode 100644 index 00000000..05d1e78a --- /dev/null +++ b/tests/headers/function-typedef-stdcall.h @@ -0,0 +1,12 @@ +typedef + void __stdcall + EVT_VIGEM_X360_NOTIFICATION( + void* Client, + void* Target, + unsigned char LargeMotor, + unsigned char SmallMotor, + unsigned char LedNumber, + void* UserData + ); + +typedef EVT_VIGEM_X360_NOTIFICATION *PFN_VIGEM_X360_NOTIFICATION; |