Skip to content

Commit e8efccb

Browse files
committed
Support for template functions
1 parent 4f8709f commit e8efccb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bindgen/ir/function.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,10 @@ impl ClangSubItemParser for Function {
710710
) -> Result<ParseResult<Self>, ParseError> {
711711
use clang_sys::*;
712712

713+
if cursor.kind() == CXCursor_FunctionTemplate {
714+
return Err(ParseError::Recurse);
715+
}
716+
713717
let kind = match FunctionKind::from_cursor(&cursor) {
714718
None => return Err(ParseError::Continue),
715719
Some(k) => k,

0 commit comments

Comments
 (0)