Nick Cameron
|
97e92b35cc
|
Preserve some whitespace between struct fields etc.
|
2015-09-02 14:11:19 +12:00 |
|
Nick Cameron
|
fae93abbda
|
Support struct-like layouts for fn args
|
2015-09-02 09:41:08 +12:00 |
|
Nick Cameron
|
f81485d9d6
|
Rename fn_args_layout to fn_args_density
|
2015-09-02 08:56:37 +12:00 |
|
Nick Cameron
|
8d81aa1991
|
Support where clauses on the same line as the function decl where it all fits on one line.
|
2015-09-02 07:59:54 +12:00 |
|
Nick Cameron
|
6216dce14e
|
Support where clause predicates at different indentations
|
2015-09-01 19:04:41 +12:00 |
|
Nick Cameron
|
02a01350ff
|
Support where predicates on the same line
|
2015-09-01 18:53:16 +12:00 |
|
Nick Cameron
|
6f3c329500
|
Support non-indented where clauses
|
2015-09-01 18:38:12 +12:00 |
|
Nick Cameron
|
fc2fb8be43
|
Support different indent styles for generics
|
2015-09-01 18:20:17 +12:00 |
|
Nick Cameron
|
0413c47a09
|
Support different tabbing of function args
(Although, frankly anything other than visual is deeply wrong).
|
2015-09-01 17:22:00 +12:00 |
|
Nick Cameron
|
89cda8d43a
|
Option to pack fn args on fewer lines
|
2015-09-01 17:06:41 +12:00 |
|
Gaëtan Cassiers
|
5e445697ce
|
Implement Rewrite for [ast::Attribute]
|
2015-08-27 22:29:07 +02:00 |
|
Marcus Klaas
|
120fd2426e
|
Format assignment
|
2015-08-25 21:43:13 +02:00 |
|
Ivan Apachev
|
c7e6d0b54a
|
Replace uses of x.len() == 0 by x.is_empty() #187
|
2015-08-25 01:07:48 +03:00 |
|
Marcus Klaas
|
5fcd313b08
|
Format closures
|
2015-08-19 23:15:56 +02:00 |
|
Nick Cameron
|
a43e2b5ae8
|
Formatting
|
2015-08-20 08:11:14 +12:00 |
|
Marcus Klaas
|
4e0a8da447
|
Refactor itemize list so that it produces an iterator
|
2015-08-19 18:40:02 +02:00 |
|
Marcus Klaas
|
41bca58100
|
Format paths
|
2015-08-16 22:53:06 +02:00 |
|
Marcus Klaas
|
82b27fc4ab
|
Correctly format typed self in function arguments
|
2015-08-14 11:56:27 +02:00 |
|
Gaëtan Cassiers
|
0eab4bf430
|
Remove ChangeSet of FmtVisitor
|
2015-08-02 13:12:51 +02:00 |
|
Marcus Klaas
|
54a96355dd
|
Phase out token::get_ident in favour of ToString
token::get_ident was removed in rust commit 00a5e66f81
|
2015-07-31 13:10:19 +02:00 |
|
Nick Cameron
|
8461e8a0a8
|
Merge pull request #147 from marcusklaas/even-more-expr
Format if expressions & loops
|
2015-07-25 09:51:59 +12:00 |
|
Marcus Klaas
|
500fb78a33
|
Format unnamed function arguments
|
2015-07-20 20:07:54 +02:00 |
|
Marcus Klaas
|
b161815fe0
|
Format if-else expressions
|
2015-07-19 23:42:54 +02:00 |
|
Nick Cameron
|
c3375078e5
|
Merge pull request #137 from nrc/struct-lit-opt
Options for formatting struct literals
|
2015-07-17 06:57:01 +12:00 |
|
Nick Cameron
|
f2bcee9d87
|
Tidy up some overrunning lines
|
2015-07-16 14:23:48 +12:00 |
|
Nick Cameron
|
018fa85453
|
Reformat code to new struct lit style
|
2015-07-16 14:05:10 +12:00 |
|
Gaëtan Cassiers
|
990a123e1c
|
Run rustfmt on the code
|
2015-07-03 11:13:28 +02:00 |
|
Gaëtan Cassiers
|
83290f15ad
|
Add comma after struct-like enum variant
This is mandatory.
|
2015-07-03 10:30:42 +02:00 |
|
Gaëtan Cassiers
|
fc4483748c
|
Fix fn decl rewriting in case of generics
An opening paren in generics caused a false-positive detection of args
beginning. The result was the creation of comments with some code into
it.
|
2015-07-03 10:30:42 +02:00 |
|
Marcus Klaas
|
28f7bd4205
|
Fixup comment wrapping in lists
|
2015-06-24 21:14:08 +02:00 |
|
Marcus Klaas
|
9f3ab0b5fe
|
Format comments in struct literals
|
2015-06-24 01:11:29 +02:00 |
|
Marcus Klaas
|
0ef5db9496
|
Format tuple-like structs
|
2015-06-23 16:54:42 +02:00 |
|
Marcus Klaas
|
d7b49fd76c
|
Remove global mutable config to allow for concurrency
|
2015-06-23 13:26:04 +02:00 |
|
Marcus Klaas
|
b17c920e46
|
Deal with problematic characters in comments
|
2015-06-15 15:07:47 +02:00 |
|
Marcus Klaas
|
13141e261b
|
Remove duplicate statement in make_comments_for_list
|
2015-06-04 15:05:50 +02:00 |
|
Marcus Klaas
|
90bc40a111
|
Implement basic enum formatting
|
2015-06-02 15:52:07 +02:00 |
|
Nick Cameron
|
90494132c2
|
Merge pull request #81 from tdudziak/issue_31
Optionally put the opening paren on the previous line for args (Issue #31)
|
2015-05-29 11:59:37 +12:00 |
|
Tomasz Dudziak
|
1bb3c9e555
|
Use config!(tab_spaces) instead of hardcoded 4 .
|
2015-05-26 09:31:16 +02:00 |
|
Tomasz Dudziak
|
21a0f1b787
|
Clarify indent calcs in compute_budget_for_args
|
2015-05-25 21:29:02 +02:00 |
|
Tomasz Dudziak
|
fdd7baeae9
|
Optionally put the opening paren on the previous line for args
|
2015-05-25 16:39:19 +02:00 |
|
Gaëtan Cassiers
|
113bdaa119
|
Fix #79
|
2015-05-25 13:22:10 +02:00 |
|
Nick Cameron
|
972f494e4e
|
Pref for comma on the last field
|
2015-05-25 17:14:39 +12:00 |
|
Nick Cameron
|
e7adf64155
|
Format structs
|
2015-05-25 17:07:55 +12:00 |
|