================
@@ -415,6 +415,16 @@ class ResultBuilder {
   bool IsImpossibleToSatisfy(const NamedDecl *ND) const;
   //@}
 };
+
+const FunctionDecl *BetterSingature(const FunctionDecl *Function,
+                                    unsigned Start) {
+  // Note that `redecls()` traverses from last to first declaration.
+  for (auto *Redecl : Function->redecls())
+    for (unsigned P = Start, N = Function->getNumParams(); P != N; ++P)
----------------
HighCommander4 wrote:

`Redecl->getNumParams()` for good measure? (I know it shouldn't be different 
but... can't hurt to minimize the assumptions we make about the AST.)

https://github.com/llvm/llvm-project/pull/206716
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to