Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions bindgen/ir/comp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1234,6 +1234,12 @@ impl CompInfo {
);

let mut cursor = ty.declaration();

// If there is a definition, that's what we want.
if let Some(def) = cursor.definition() {
cursor = def;
}

let mut kind = Self::kind_from_cursor(&cursor);
if kind.is_err() {
if let Some(location) = location {
Expand Down
Loading