This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] fix PR38525 - Extraneous continuation indent spaces with BreakBeforeBinaryOperators set to All
ClosedPublic

Authored by owenpan on Aug 14 2018, 4:44 AM.

Diff Detail

Repository
rC Clang

Event Timeline

owenpan created this revision.Aug 14 2018, 4:44 AM

Test case:

Please create the diffs with full context (git diff -U 9999999) and add an test-case.

JonasToth retitled this revision from Extraneous continuation indent spaces with BreakBeforeBinaryOperators set to All to [clang-format] fix PR38525 - Extraneous continuation indent spaces with BreakBeforeBinaryOperators set to All.Aug 14 2018, 5:08 AM

Test case:

Please add a testcase in the source and add checks to verify the changes.

owenpan updated this revision to Diff 160561.Aug 14 2018, 5:29 AM

Updated patch created by "svn diff --diff-cmd=diff -x -U999999"

Updated patch created by "svn diff --diff-cmd=diff -x -U999999"

The patch seems not to be in the correct path (the lib/Format thing is missing). Could you check that again? If you plan to add more patches you could also have a look at arc which handles all of that for you :)

owenpan updated this revision to Diff 160564.Aug 14 2018, 5:55 AM

Updated the patch to include lib/Format path prefix.

hokein removed a reviewer: hokein.Aug 14 2018, 6:10 AM
owenpan updated this revision to Diff 160577.Aug 14 2018, 7:13 AM

Added a test case.

owenpan updated this revision to Diff 160622.Aug 14 2018, 9:52 AM

Simplified the test case.

sammccall accepted this revision.Aug 24 2018, 3:08 AM
This revision is now accepted and ready to land.Aug 24 2018, 3:08 AM
JonasToth added a comment.EditedAug 24 2018, 7:40 AM

@owenpan shall i commit for you?

@JonasToth Yes, please. Also https://reviews.llvm.org/D50697 :)
Thanks again for getting me started!

This revision was automatically updated to reflect the committed changes.