From 31bd2d3a1ffa47e15b0701761966fc836c9da99d Mon Sep 17 00:00:00 2001 From: Emilio Cobos Álvarez Date: Thu, 15 Dec 2016 16:57:32 +0100 Subject: ir: Don't parse standalone destructors. --- libbindgen/src/ir/function.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbindgen/src') diff --git a/libbindgen/src/ir/function.rs b/libbindgen/src/ir/function.rs index a068097d..76576dbd 100644 --- a/libbindgen/src/ir/function.rs +++ b/libbindgen/src/ir/function.rs @@ -242,9 +242,9 @@ impl ClangSubItemParser for Function { -> Result, ParseError> { use clang_sys::*; match cursor.kind() { + // FIXME(emilio): Generate destructors properly. CXCursor_FunctionDecl | CXCursor_Constructor | - CXCursor_Destructor | CXCursor_CXXMethod => {} _ => return Err(ParseError::Continue), }; -- cgit v1.2.3