[clang][Sema] Unify getPrototypeLoc helpers in SemaCodeComplete and clangd (#143345)

HeuristicResolver houses the unified implementation.

Fixes https://github.com/llvm/llvm-project/issues/143240

GitOrigin-RevId: e64289baa00f822746a7051687c5c5002368880f
1 file changed