This is an archive of the discontinued LLVM Phabricator instance.

[clang][extract-api] Suppprt for the module name property in SymbolGraph
ClosedPublic

Authored by dang on Mar 21 2022, 8:01 AM.

Details

Summary

Adds --product-name= flag to the clang driver. This gets forwarded to
cc1 only when we are performing a ExtractAPI Action. This is used to
populate the name field of the module object in the generated SymbolGraph.

Depends on D121936

Diff Detail

Event Timeline

dang created this revision.Mar 21 2022, 8:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2022, 8:01 AM
dang requested review of this revision.Mar 21 2022, 8:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2022, 8:01 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
zixuw added a comment.Mar 22 2022, 1:40 PM

LGTM. Need to rebase. Do you think ProductName should be a general property of APISerializer or something specific to the SymbolGraphSerializer?

zixuw accepted this revision.Mar 22 2022, 4:54 PM
This revision is now accepted and ready to land.Mar 22 2022, 4:54 PM
dang added a comment.Mar 23 2022, 2:55 AM

LGTM. Need to rebase. Do you think ProductName should be a general property of APISerializer or something specific to the SymbolGraphSerializer?

Good question! I think I am going to make it a general property of the APISerializer as it isn't a symbol graph specific concept IMO.

dang updated this revision to Diff 417570.Mar 23 2022, 5:07 AM

Missed some stuff in the previous rebase.

dang updated this revision to Diff 417572.Mar 23 2022, 5:13 AM

Accidentally re-added some of the old files in SymbolGraph/ during the rebase

zixuw accepted this revision.Mar 23 2022, 9:18 AM