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
----
This commit is contained in:
Nigel Tao committed 2020-06-04 23:59:20 +10:00
1 parent d8cd72798a
commit 12b0f4c0bc
5 files changed
+3061 -4298

No files matched your search

+2 -1
View File
@@ -28,7 +28,8 @@ const (
CcompilersDefault = "clang-5.0,gcc"
CcompilersUsage = `comma-separated list of C compilers`
CformatterDefault = "clang-format-5.0"
// TODO: remove the -cformatter flag entirely.
CformatterDefault = "dumbindent"
CformatterUsage = `C formatter`
FocusDefault = ""