================ @@ -93,6 +94,12 @@ class HeuristicResolver { // during simplification, and the operation fails if no pointer type is found. QualType simplifyType(QualType Type, const Expr *E, bool UnwrapPointer); + // Given an expression `Fn` representing the callee in a function call, + // if the call is through a function pointer, try to find the declaration of + // the corresponding function pointer type, so that we can recover argument + // names from it. + FunctionProtoTypeLoc getProtoTypeLoc(const Expr *Fn) const; ---------------- zyn0217 wrote:
How about getFunctionProtoTypeLoc? We don't seem to have other ProtoTypeLocs besides FunctionTypeLoc https://github.com/llvm/llvm-project/pull/143345 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits