mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 00:38:14 +01:00
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:
1 parent
d8cd72798a
commit
12b0f4c0bc
5 files changed
+3061
-4298
No files matched your search
@@ -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 = ""
|
||||
|
||||
Reference in new issue
Block a user