[clang] [clang][ExtractAPI] Record availability information only for the target platform (PR #76823)
Daniel Grumberg via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 5 07:27:51 PST 2024
================
@@ -61,17 +61,17 @@ APISet::addNamespace(APIRecord *Parent, StringRef Name, StringRef USR,
GlobalVariableRecord *
APISet::addGlobalVar(StringRef Name, StringRef USR, PresumedLoc Loc,
- AvailabilitySet Availabilities, LinkageInfo Linkage,
+ const AvailabilityInfo &Availability, LinkageInfo Linkage,
const DocComment &Comment, DeclarationFragments Fragments,
DeclarationFragments SubHeading, bool IsFromSystemHeader) {
return addTopLevelRecord(USRBasedLookupTable, GlobalVariables, USR, Name, Loc,
- std::move(Availabilities), Linkage, Comment,
- Fragments, SubHeading, IsFromSystemHeader);
+ Availability, Linkage, Comment, Fragments,
----------------
daniel-grumberg wrote:
Can you make sure that all of Availabilities are `std::move`
https://github.com/llvm/llvm-project/pull/76823
More information about the cfe-commits
mailing list