[clang] [clang-tools-extra] clangd: Show argument names for function pointer struct fields (PR #69011)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 25 20:50:12 PST 2024


================
@@ -6143,6 +6144,13 @@ static FunctionProtoTypeLoc GetPrototypeLoc(Expr *Fn) {
     }
   }
 
+  if (const auto *ME = dyn_cast<MemberExpr>(Fn)) {
----------------
HighCommander4 wrote:

nit: make this an `else if` (i.e. make it part of the chain just above), and then the `!Target` condition below becomes unnecessary

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


More information about the cfe-commits mailing list