This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Fix false positive in local rename collision detetction
ClosedPublic

Authored by kbobyrev on Feb 8 2021, 12:53 AM.

Diff Detail

Event Timeline

kbobyrev created this revision.Feb 8 2021, 12:53 AM
kbobyrev requested review of this revision.Feb 8 2021, 12:53 AM
kbobyrev updated this revision to Diff 322045.Feb 8 2021, 12:53 AM

Fix comment formatting in the test.

hokein accepted this revision.Feb 8 2021, 6:40 AM

Thanks for the quick fix.

clang-tools-extra/clangd/refactor/Rename.cpp
427

I think using doesThisDeclarationHaveABody is a better fit, e.g. Foo(Foo& a) = default; is a definition, but no function body :)

This revision is now accepted and ready to land.Feb 8 2021, 6:40 AM
kbobyrev updated this revision to Diff 322323.Feb 9 2021, 2:45 AM
kbobyrev marked an inline comment as done.

Resolve review comment.

This revision was landed with ongoing or failed builds.Feb 9 2021, 2:51 AM
This revision was automatically updated to reflect the committed changes.