[clang] [APINotes] Upstream APINotesWriter (PR #65187)

Egor Zhdan via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 4 04:12:16 PDT 2023


================
@@ -749,6 +750,17 @@ struct Context {
 
   Context(ContextID id, ContextKind kind) : id(id), kind(kind) {}
 };
+
+/// A temporary reference to an Objective-C selector, suitable for
+/// referencing selector data on the stack.
+///
+/// Instances of this struct do not store references to any of the
+/// data they contain; it is up to the user to ensure that the data
+/// referenced by the identifier list persists.
+struct ObjCSelectorRef {
+  unsigned NumPieces;
----------------
egorzhdan wrote:

Good point, we're not actually using `NumPieces` anywhere. Removed it.

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


More information about the cfe-commits mailing list