This repository has been archived by the owner on Jun 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spatch: remove trailing comment when everything else in the line was …
…removed Summary: Just added unit tests, the previous diff already handled this case. Test Plan: unit test included $ ./spatch -test Reviewers: pieter, ptarjan, julienv, zoel Reviewed By: pieter CC: rmcelroy, ahupp Differential Revision: https://phabricator.fb.com/D651188
- Loading branch information
pad
committed
Dec 7, 2012
1 parent
f7141ea
commit b7a6b33
Showing
4 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
1; | ||
2; | ||
3; | ||
4; | ||
// this should be kept | ||
// this should be kept too |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
1; | ||
foo(1); // I'm a clown | ||
2; | ||
foo( | ||
1); | ||
3; | ||
foo(1); /* I'm a | ||
really bad clown */ | ||
4; | ||
// this should be kept | ||
foo(1); // this should be removed | ||
// this should be kept too |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- foo(X); |