Commit Graph
13 Commits
Author SHA1 Message Date
Nigel Tao be1f605108 Run gofmt 2022-08-21 21:41:06 +10:00
Nigel Tao 226c476994 Remove calls to Go's deprecated "io/ioutil" 2021-08-22 11:17:34 +10:00
Nigel Tao c9b50c0be7 Add links to dumbindent blog post 2020-06-16 14:25:46 +10:00
Nigel Tao b1ea22045a Stop dumbindent adding or removing line breaks 2020-06-10 21:51:25 +10:00
Nigel Tao 8bf4084c8b Update dumbindent comparison for clang-format-9
The numbers are the median real time of 5 runs.
2020-06-09 15:46:56 +10:00
Nigel Tao 22d08366c8 Add dumbindent algorithm comment 2020-06-08 23:25:08 +10:00
Nigel Tao 2858c4cfc2 Add dumbindent.Options (tabs vs spaces) 2020-06-07 21:59:53 +10:00
Nigel Tao 53d5f5155c Have dumbindent break after some '{' and ';'s 2020-06-07 21:52:24 +10:00
Nigel Tao 6424bae087 Have dumbindent handle multi-line strings/comments
Fixes #31
2020-06-06 22:32:39 +10:00
Nigel Tao 3d7af06727 Have dumbindent take a dst slice argument 2020-06-06 21:09:41 +10:00
Nigel Tao dd04d55417 Update dumbindent comparison for clang-format-9 2020-06-05 18:35:05 +10:00
Nigel Tao 12b0f4c0bc Change the default -cformatter to dumbindent
A follow-up commit will remove the -cformatter flag entirely.

Formatting the generated C code is now a small fraction of where "wuffs
gen" spends its time.

----
$ # Before.
$ time wuffs gen > /dev/null
real	0m0.932s
user	0m0.837s
sys	0m0.187s

$ # After.
$ time wuffs gen > /dev/null
real	0m0.186s
user	0m0.170s
sys	0m0.069s

$ time wuffs gen -cformatter= > /dev/null
real	0m0.184s
user	0m0.170s
sys	0m0.059s
----
2020-06-04 23:59:20 +10:00
Nigel Tao d8cd72798a Add {cmd,lib}/dumbindent 2020-06-04 23:35:11 +10:00