This is an archive of the discontinued LLVM Phabricator instance.

[CodeComplete] Add code completion for using alias.
ClosedPublic

Authored by lh123 on Jun 25 2020, 2:54 AM.

Details

Summary

Add code completion for using alias.

Diff Detail

Event Timeline

lh123 created this revision.Jun 25 2020, 2:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 25 2020, 2:54 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
lh123 updated this revision to Diff 273287.Jun 25 2020, 3:34 AM

format code.

mostly LG, apart from the comments around the fallthrough, thanks!

clang/lib/Sema/SemaCodeComplete.cpp
1820

let's take in the CodeCompletionBuilder& too instead of creating a new one.

2060

there's already a fallthrough down below, please drop this one.

2090

let's put this right after using declaration. (this at least needs to be outside this if statement to be triggered by fallthrough)

lh123 updated this revision to Diff 273321.Jun 25 2020, 5:54 AM
lh123 marked 3 inline comments as done.

Address comment.

kadircet accepted this revision.Jun 25 2020, 8:45 AM

LGTM, thanks!

Will land this one too. In the meantime feel free to apply for commit access, as explained in https://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access (IIRC, you already have a couple patches, if not you can also point at these after I land)

This revision is now accepted and ready to land.Jun 25 2020, 8:45 AM
kadircet requested changes to this revision.Jun 26 2020, 1:41 AM

this seems to be failing to merge, could you rebase on top of head?

This revision now requires changes to proceed.Jun 26 2020, 1:41 AM
lh123 updated this revision to Diff 273631.Jun 26 2020, 2:37 AM

Rebase to head.

This revision was not accepted when it landed; it landed in state Needs Review.Jun 26 2020, 7:04 AM
This revision was automatically updated to reflect the committed changes.