summaryrefslogtreecommitdiff
path: root/tests/headers/function-typedef-stdcall.h
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2020-05-14 04:24:32 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2020-05-14 12:58:30 +0200
commitb1a1ebc918e44f4aa928878dae20fa7be6c87043 (patch)
tree3b0c3cb839aac0c2f056cc06126b1e139058312e /tests/headers/function-typedef-stdcall.h
parentfcc10961dbfe128d2e592cb302316122938d7b58 (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.h12
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;