[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
Sun Jun 8 22:02:52 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:

Posted https://github.com/llvm/llvm-project/pull/143345 for this.

https://github.com/llvm/llvm-project/pull/143087


More information about the cfe-commits mailing list