================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to