[clang] [InstallAPI] Collect frontend attributes & ObjCInterface decls (PR #83378)

Cyndy Ishida via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 29 13:07:33 PST 2024


================
@@ -16,6 +16,74 @@ using namespace llvm::MachO;
 
 namespace clang::installapi {
 
+GlobalRecord *FrontendRecordsSlice::addGlobal(
+    StringRef Name, RecordLinkage Linkage, GlobalRecord::Kind GV,
+    const clang::AvailabilityInfo Avail, const Decl *D, const HeaderType Access,
+    SymbolFlags Flags) {
+
+  auto *GR = llvm::MachO::RecordsSlice::addGlobal(Name, Linkage, GV, Flags);
+  if (!FrontendRecords.contains(GR))
----------------
cyndyishida wrote:

The way tapi handles this today is that none of the `frontend` attributes are updated or even checked if they differ. Since this is not a problem area, I figured to keep that behavior. 

https://github.com/llvm/llvm-project/pull/83378


More information about the cfe-commits mailing list