Skip to content
Open
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
8 changes: 8 additions & 0 deletions dsymbol/src/dsymbol/conversion/first.d
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,14 @@ private:
dec.accept(this);
return;
}
// Skip forward declarations (struct Foo;) only process full definitions
// otherwise it'll overwrite the useful one, and dmd -H has the tendency to
// generate a lot of them specially with ImportC
static if (!is(AggType == const(TemplateDeclaration)))
{
if (dec.structBody is null && (kind == CompletionKind.structName || kind == CompletionKind.unionName))
return;
}
pushSymbol(dec.name.text, kind, symbolFile, dec.name.index);
scope(exit) popSymbol();

Expand Down
Loading