summaryrefslogtreecommitdiff
path: root/src/clang.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/clang.rs')
-rw-r--r--src/clang.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/clang.rs b/src/clang.rs
index 9eff324f..c3da6ec7 100644
--- a/src/clang.rs
+++ b/src/clang.rs
@@ -1,4 +1,4 @@
-#![allow(non_uppercase_statics)]
+#![allow(non_upper_case_globals)]
use libc::{c_uint, c_char, c_int, c_ulong};
use std::{mem, io, ptr, string};
@@ -239,6 +239,12 @@ impl Type {
Type { x: clang_getResultType(self.x) }
}
}
+
+ pub fn call_conv(&self) -> Enum_CXCallingConv {
+ unsafe {
+ clang_getFunctionTypeCallingConv(self.x)
+ }
+ }
}
// SourceLocation