diff options
Diffstat (limited to 'libbindgen/src')
-rw-r--r-- | libbindgen/src/ir/item.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libbindgen/src/ir/item.rs b/libbindgen/src/ir/item.rs index 301085dc..00c29822 100644 --- a/libbindgen/src/ir/item.rs +++ b/libbindgen/src/ir/item.rs @@ -950,6 +950,7 @@ impl ClangItemParser for Item { CXCursor_MacroDefinition | CXCursor_MacroExpansion | CXCursor_UsingDeclaration | + CXCursor_UsingDirective | CXCursor_StaticAssert | CXCursor_InclusionDirective => { debug!("Unhandled cursor kind {:?}: {:?}", @@ -957,9 +958,13 @@ impl ClangItemParser for Item { cursor); } _ => { - error!("Unhandled cursor kind {:?}: {:?}", - cursor.kind(), - cursor); + // ignore toplevel operator overloads + let spelling = cursor.spelling(); + if !spelling.starts_with("operator") { + error!("Unhandled cursor kind {:?}: {:?}", + cursor.kind(), + cursor); + } } } |