This is an archive of the discontinued LLVM Phabricator instance.

[clang][ExtractAPI] Add targetFallback to relationships in symbol graph
ClosedPublic

Authored by dang on Oct 21 2022, 7:38 AM.

Details

Summary

Adds a 'targetFallback' field to relationships in symbol graph that
contains the plain name of the relationship target. This is useful for
clients when the relationship target symbol is not available.

Diff Detail

Event Timeline

dang created this revision.Oct 21 2022, 7:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 21 2022, 7:38 AM
Herald added a subscriber: yaxunl. · View Herald Transcript
dang requested review of this revision.Oct 21 2022, 7:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 21 2022, 7:38 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
zixuw added a comment.Oct 24 2022, 9:56 AM

Is it easy to/worth checking if the target is actually outside of the current module to keep the output smaller and concise?

dang added a comment.Oct 24 2022, 10:47 AM

Is it easy to/worth checking if the target is actually outside of the current module to keep the output smaller and concise?

I think it can be done, since we ignore symbols that don't come from the headers provided on the command line, we could just check if the target symbol is something that is known to the APISet.

dang added a comment.Oct 25 2022, 2:33 AM

However, I am not sure it's worthwhile and we might run into edge cases doing it this way with explicitly ignored symbols.

zixuw accepted this revision.Oct 25 2022, 10:14 AM
This revision is now accepted and ready to land.Oct 25 2022, 10:14 AM