This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Rename HeuristicResolver::resolveCallExpr() to resolveReturnTypeOfCallExpr()
ClosedPublic

Authored by nridge on Apr 19 2021, 12:27 AM.

Diff Detail

Event Timeline

nridge created this revision.Apr 19 2021, 12:27 AM
nridge requested review of this revision.Apr 19 2021, 12:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2021, 12:27 AM

The motivation for this patch is that the old name initially confused me into thinking it resolved the callee decl of the call-expr.

sammccall accepted this revision.Apr 23 2021, 1:33 PM

Agree this is confusing, thanks for fixing!

clang-tools-extra/clangd/HeuristicResolver.h
57

nit: I think resolveTypeOfCallExpr (or resolveCallExprType) is sufficient/better, as technically it's the callee that has a return type, the call expr just has a type

This revision is now accepted and ready to land.Apr 23 2021, 1:33 PM
nridge updated this revision to Diff 340393.Apr 25 2021, 4:12 PM
nridge marked an inline comment as done.

Address review comment

This revision was landed with ongoing or failed builds.Apr 25 2021, 4:20 PM
This revision was automatically updated to reflect the committed changes.