[clang-tools-extra] [clangd] Adapt Inlay Hint support for Deducing This (PR #68177)
Nathan Ridge via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 22 21:52:35 PDT 2023
================
@@ -859,7 +872,9 @@ class InlayHintVisitor : public RecursiveASTVisitor<InlayHintVisitor> {
else
ForwardedParams = {Params.begin(), Params.end()};
- NameVec ParameterNames = chooseParameterNames(ForwardedParams);
+ auto ForwardedParamsRef =
----------------
HighCommander4 wrote:
What do you think about the following tweak:
```
SmallVector<const ParamVarDecl *> ForwardedParamsStorage;
ArrayRef<const ParamVarDecl *> ForwardedParams;
if (Callee.Decl) {
ForwardedParamsStorage = resolveForwardingParameters(Callee.Decl);
ForwardedParams = maybeDropCxxExplicitObjectParameters(ForwardedParamsStorage);
} else {
ForwardedParams = Params;
}
```
https://github.com/llvm/llvm-project/pull/68177
More information about the cfe-commits
mailing list