[clang-tools-extra] [clangd] Guard against trivial FunctionProtoTypeLoc when creating inlay hints (PR #143087)
Nathan Ridge via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 7 00:29:57 PDT 2025
================
@@ -368,6 +368,14 @@ static FunctionProtoTypeLoc getPrototypeLoc(Expr *Fn) {
}
if (auto F = Target.getAs<FunctionProtoTypeLoc>()) {
+ // In some edge cases the AST can contain a "trivial" FunctionProtoTypeLoc
----------------
HighCommander4 wrote:
Thanks for the reminder about this. Now that we've upstreamed `HeuristicResolver`, it's a good place for a unified implementation of this sort of thing. I'll do that in https://github.com/llvm/llvm-project/issues/143240.
https://github.com/llvm/llvm-project/pull/143087
More information about the cfe-commits
mailing list