We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba54134 commit aaa8883Copy full SHA for aaa8883
bindgen/ir/item.rs
@@ -1433,8 +1433,11 @@ impl Item {
1433
}
1434
1435
match cursor.kind() {
1436
- // Guess how does clang treat extern "C" blocks?
1437
- CXCursor_UnexposedDecl => Err(ParseError::Recurse),
+ // On Clang 18+, extern "C" is reported accurately as a LinkageSpec.
+ // Older LLVM treat it as UnexposedDecl.
1438
+ CXCursor_LinkageSpec | CXCursor_UnexposedDecl => {
1439
+ Err(ParseError::Recurse)
1440
+ }
1441
1442
// We allowlist cursors here known to be unhandled, to prevent being
1443
// too noisy about this.
0 commit comments