This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Improve name conflict detection
ClosedPublic

Authored by kbobyrev on Feb 4 2021, 3:08 AM.

Details

Summary

Follow-up on D95925: adds better detection for function arguments and also
checks for conflicts in muli-variable init statements in ForStmt.

Diff Detail

Event Timeline

kbobyrev created this revision.Feb 4 2021, 3:08 AM
kbobyrev requested review of this revision.Feb 4 2021, 3:08 AM
hokein accepted this revision.Feb 4 2021, 4:32 AM

Thanks!

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

I'd use get<FunctionProtoTypeLoc> which seems safer -- typeLoc is a very generic class

This revision is now accepted and ready to land.Feb 4 2021, 4:32 AM
kbobyrev updated this revision to Diff 321398.Feb 4 2021, 5:38 AM
kbobyrev marked an inline comment as done.

Use FunctionProtoTypeLoc

kbobyrev updated this revision to Diff 321545.Feb 4 2021, 12:36 PM

Can't instantiate DynTypedNode with FunctionProtoTypeLoc, has to be just TypeLoc :(

This revision was landed with ongoing or failed builds.Feb 4 2021, 12:37 PM
This revision was automatically updated to reflect the committed changes.