This is an archive of the discontinued LLVM Phabricator instance.

Moved applyAllReplacementsAndFormat to clangFormat to avoid cyclic dependency.
AbandonedPublic

Authored by ioeric on Feb 29 2016, 11:09 AM.

Details

Reviewers
klimek
Summary

Merge branch 'master' of http://llvm.org/git/clang
Moved applyAllReplacementsAndFormat to clangFormat to avoid cyclic dependency.

Diff Detail

Event Timeline

ioeric updated this revision to Diff 49397.Feb 29 2016, 11:09 AM
ioeric retitled this revision from to Moved applyAllReplacementsAndFormat to clangFormat to avoid cyclic dependency..
ioeric updated this object.
ioeric added a reviewer: klimek.
ioeric added subscribers: klimek, cfe-commits.
klimek added inline comments.Mar 1 2016, 2:14 AM
include/clang/Format/Format.h
734–736

Perhaps: Returns the replacements corresponding to applying and formatting 'Replaces'.

741–743

Given that this is now in a separate file, I'd duplicate the comment from applyAllReplacements and put a "See also" at the end of the comment.

750–751

.... the changed code with all replacements applied and formatted, if successful. The empty string otherwise.

unittests/Format/FormatTest.cpp
12

Yes.

11172–11174

I don't think it's relevant where this is copied from, as it doesn't really contain any code, and is merely a test fixture adapter, which is to be expected.

ioeric updated this revision to Diff 49470.Mar 1 2016, 3:30 AM
ioeric marked 5 inline comments as done.
  • Fixed commenting.
klimek accepted this revision.Mar 1 2016, 4:30 AM
klimek edited edge metadata.

LG

This revision is now accepted and ready to land.Mar 1 2016, 4:30 AM
ioeric abandoned this revision.Sep 9 2016, 8:41 AM