summaryrefslogtreecommitdiff
path: root/libbindgen/src/ir/function.rs
diff options
context:
space:
mode:
Diffstat (limited to 'libbindgen/src/ir/function.rs')
-rw-r--r--libbindgen/src/ir/function.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbindgen/src/ir/function.rs b/libbindgen/src/ir/function.rs
index 7aed3d7e..88ab861d 100644
--- a/libbindgen/src/ir/function.rs
+++ b/libbindgen/src/ir/function.rs
@@ -134,6 +134,11 @@ impl FunctionSig {
use clang_sys::*;
debug!("FunctionSig::from_ty {:?} {:?}", ty, cursor);
+ // Skip function templates
+ if cursor.kind() == CXCursor_FunctionTemplate {
+ return Err(ParseError::Continue);
+ }
+
// Don't parse operatorxx functions in C++
let spelling = cursor.spelling();
if spelling.starts_with("operator") {