This is an archive of the discontinued LLVM Phabricator instance.

[CodeCompletion] Refactor: Extract two Objective-C block formatting related functions from FormatFunctionParameter
ClosedPublic

Authored by arphaman on Oct 12 2016, 8:57 AM.

Details

Summary

This patch extracts two new functions from the function FormatFunctionParameter that are related to Objective-C block formatting. It should be two separate commits (the first extracts findTypeLocationForBlockDecl, and the second extracts formatBlockPlaceholder), but I squashed them to make the review easier.

This patch is required for my follow up patch that improves completion for block property setters.

Diff Detail

Repository
rL LLVM

Event Timeline

arphaman updated this revision to Diff 74388.Oct 12 2016, 8:57 AM
arphaman retitled this revision from to [CodeCompletion] Refactor: Extract two Objective-C block formatting related functions from FormatFunctionParameter.
arphaman updated this object.
arphaman added a reviewer: manmanren.
arphaman set the repository for this revision to rL LLVM.
arphaman added a subscriber: cfe-commits.
manmanren edited edge metadata.Oct 12 2016, 10:43 AM

Cheers,
Manman

lib/Sema/SemaCodeComplete.cpp
2165

Please add comments for the helper function.

2285

Comments here as well.

arphaman updated this revision to Diff 74520.Oct 13 2016, 8:10 AM
arphaman edited edge metadata.
arphaman marked 2 inline comments as done.

The updated patch has comments for the two extracted functions.

manmanren accepted this revision.Oct 14 2016, 2:48 PM
manmanren edited edge metadata.

LGTM.

Manman

This revision is now accepted and ready to land.Oct 14 2016, 2:48 PM
This revision was automatically updated to reflect the committed changes.