This is an archive of the discontinued LLVM Phabricator instance.

[clang][ExtractAPI] Ignore fully anonymous RecordDecls
ClosedPublic

Authored by dang on Oct 12 2022, 11:55 AM.

Details

Summary

ExtractAPI was emitting a separate symbol for anonymous record declaration
that define the type of a member of another record declaration. Now
ExtractAPI ignores these declarations and just records the existence of
the actual member.

Diff Detail

Event Timeline

dang created this revision.Oct 12 2022, 11:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 12 2022, 11:55 AM
dang requested review of this revision.Oct 12 2022, 11:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 12 2022, 11:55 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
QuietMisdreavus accepted this revision.Oct 12 2022, 3:33 PM

It would be ideal to be able to properly handle nested types like this, but for right now this is causing a crash in Swift-DocC, so this patch will at least get that working.

This revision is now accepted and ready to land.Oct 12 2022, 3:33 PM
This revision was automatically updated to reflect the committed changes.