We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1129431 commit ce0a254Copy full SHA for ce0a254
libbindgen/src/ir/function.rs
@@ -187,7 +187,8 @@ impl FunctionSig {
187
188
let is_method = cursor.kind() == CXCursor_CXXMethod;
189
let is_constructor = cursor.kind() == CXCursor_Constructor;
190
- if is_constructor && cursor.lexical_parent() != cursor.semantic_parent() {
+ if (is_constructor || is_method) &&
191
+ cursor.lexical_parent() != cursor.semantic_parent() {
192
// Only parse constructors once.
193
return Err(ParseError::Continue);
194
}
libbindgen/tests/headers/constructor-tp.hpp
@@ -3,8 +3,15 @@ template<typename T>
3
class Foo {
4
public:
5
Foo();
6
+
7
+ void doBaz();
8
};
9
10
+template<typename T>
11
+inline void
12
+Foo<T>::doBaz() {
13
+}
14
15
class Bar {
16
17
Bar();
0 commit comments