================
@@ -3320,6 +3320,11 @@ static void AddFunctionParameterChunks(
for (unsigned P = Start, N = Function->getNumParams(); P != N; ++P) {
const ParmVarDecl *Param = Function->getParamDecl(P);
+ // Select the first parameter name for consistent results with Index.
+ for (auto *Redecl : Function->redecls()) {
+ if (auto *RParam = Redecl->getParamDecl(P); RParam->getIdentifier())
+ Param = RParam;
----------------
timon-ul wrote:
Maybe it is actually more desired to return the last parameter names?
https://github.com/llvm/llvm-project/pull/206716
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits