[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:30:12 PST 2024
================
@@ -256,14 +256,14 @@ struct APIRecord {
APIRecord() = delete;
APIRecord(RecordKind Kind, StringRef USR, StringRef Name,
- PresumedLoc Location, AvailabilitySet Availabilities,
+ PresumedLoc Location, const AvailabilityInfo &Availability,
----------------
daniel-grumberg wrote:
Can you keep this as a value and bring back the `std::move` below, this allows to prevent unnecessary copies.
https://github.com/llvm/llvm-project/pull/76823
More information about the cfe-commits
mailing list