[clang] [APINotes] Add Where.Object selectors for C++ methods (PR #216148)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 17 10:40:59 PDT 2026


================
@@ -158,6 +158,32 @@ class APINotesWriter::Implementation {
     return *Key;
   }
 
+  FunctionTableKey getFunctionKey(uint32_t ParentContextID, StringRef Name,
+                                  const FunctionSelector &Selector) {
+    std::optional<FunctionTableKey> Key;
+    auto GetIdentifier = [this](StringRef S) -> std::optional<IdentifierID> {
+      return getIdentifier(S);
+    };
+    if (Selector.Parameters) {
+      if (Selector.Object)
----------------
Xazax-hun wrote:

This branch almost makes me think if it would be simpler if these functions always took an optional Object and/or parameters and had a default empty optional argument. 

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


More information about the cfe-commits mailing list