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
Paths
| Differential D122141
[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 Depends on D121936
Diff Detail
Event Timelinedang added a child revision: D122175: [clang][extract-api] Enable processing of multiple headers.Mar 21 2022, 1:29 PM Comment Actions LGTM. Need to rebase. Do you think ProductName should be a general property of APISerializer or something specific to the SymbolGraphSerializer? This revision is now accepted and ready to land.Mar 22 2022, 4:54 PM Comment Actions
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 removed a parent revision: D121936: Ensure -extract-api handles multiple headers correctly.Mar 23 2022, 3:08 AM Comment Actions Rebasing on top of latest main which includes https://reviews.llvm.org/rG89f6b26f1beb2c1344f5cfeb34e405128544c76b dang removed a parent revision: D121936: Ensure -extract-api handles multiple headers correctly.Mar 23 2022, 3:13 AM dang removed a parent revision: D121936: Ensure -extract-api handles multiple headers correctly.Mar 23 2022, 5:08 AM dang removed a parent revision: D121936: Ensure -extract-api handles multiple headers correctly.Mar 23 2022, 5:15 AM Closed by commit rG5ef2ec7e4e12: [clang][extract-api] Suppprt for the module name property in SymbolGraph (authored by dang). · Explain WhyMar 23 2022, 9:34 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 417662 clang/include/clang/Driver/Options.td
clang/include/clang/ExtractAPI/Serialization/SerializerBase.h
clang/include/clang/ExtractAPI/Serialization/SymbolGraphSerializer.h
clang/include/clang/Frontend/FrontendOptions.h
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
clang/test/ExtractAPI/global_record.c
|