[clang] [clang-tools-extra] [clang][Sema] Unify getPrototypeLoc helpers in SemaCodeComplete and clangd (PR #143345)
Nathan Ridge via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 5 06:37:19 PDT 2025
================
@@ -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;
----------------
HighCommander4 wrote:
Renamed.
https://github.com/llvm/llvm-project/pull/143345
More information about the cfe-commits
mailing list