diff options
author | Ayke van Laethem <[email protected]> | 2022-06-18 20:03:07 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-06-19 13:00:44 +0200 |
commit | 64d7f1e436ddc155100b030bcdcefd8354c07b09 (patch) | |
tree | 311adb89f4d8dbc39f508758a523c004f63cbc26 /src/internal | |
parent | 9af535bf98a7cd01db85468c427020969a9b68d1 (diff) | |
download | tinygo-64d7f1e436ddc155100b030bcdcefd8354c07b09.tar.gz tinygo-64d7f1e436ddc155100b030bcdcefd8354c07b09.zip |
all: run gofmt on all source code
Some source code wasn't part of `FMT_PATHS` so wasn't checked for
correct formatting. This change includes all this source code and
excludes cgo/testdata because it contains files that can't be parsed.
Diffstat (limited to 'src/internal')
-rw-r--r-- | src/internal/fuzz/fuzz.go | 2 | ||||
-rw-r--r-- | src/internal/task/task_none.go | 1 | ||||
-rw-r--r-- | src/internal/task/task_stack_386.go | 1 | ||||
-rw-r--r-- | src/internal/task/task_stack_amd64.go | 1 | ||||
-rw-r--r-- | src/internal/task/task_stack_amd64_windows.go | 1 | ||||
-rw-r--r-- | src/internal/task/task_stack_arm.go | 1 | ||||
-rw-r--r-- | src/internal/task/task_stack_arm64.go | 1 | ||||
-rw-r--r-- | src/internal/task/task_stack_avr.go | 1 | ||||
-rw-r--r-- | src/internal/task/task_stack_cortexm.go | 1 | ||||
-rw-r--r-- | src/internal/task/task_stack_esp32.go | 1 | ||||
-rw-r--r-- | src/internal/task/task_stack_esp8266.go | 1 | ||||
-rw-r--r-- | src/internal/task/task_stack_tinygoriscv.go | 1 |
12 files changed, 12 insertions, 1 deletions
diff --git a/src/internal/fuzz/fuzz.go b/src/internal/fuzz/fuzz.go index ee6e0544b..cd525076d 100644 --- a/src/internal/fuzz/fuzz.go +++ b/src/internal/fuzz/fuzz.go @@ -115,7 +115,7 @@ func CheckCorpus(vals []any, types []reflect.Type) error { return errors.New("not implemented") } -func ResetCoverage() {} +func ResetCoverage() {} func SnapshotCoverage() {} // RunFuzzWorker is called in a worker process to communicate with the diff --git a/src/internal/task/task_none.go b/src/internal/task/task_none.go index 40420f022..19dbee624 100644 --- a/src/internal/task/task_none.go +++ b/src/internal/task/task_none.go @@ -1,3 +1,4 @@ +//go:build scheduler.none // +build scheduler.none package task diff --git a/src/internal/task/task_stack_386.go b/src/internal/task/task_stack_386.go index c0f066594..10744757a 100644 --- a/src/internal/task/task_stack_386.go +++ b/src/internal/task/task_stack_386.go @@ -1,3 +1,4 @@ +//go:build scheduler.tasks && 386 // +build scheduler.tasks,386 package task diff --git a/src/internal/task/task_stack_amd64.go b/src/internal/task/task_stack_amd64.go index f8d557816..b39189316 100644 --- a/src/internal/task/task_stack_amd64.go +++ b/src/internal/task/task_stack_amd64.go @@ -1,3 +1,4 @@ +//go:build scheduler.tasks && amd64 && !windows // +build scheduler.tasks,amd64,!windows package task diff --git a/src/internal/task/task_stack_amd64_windows.go b/src/internal/task/task_stack_amd64_windows.go index e5ee47eb5..41ddbe6c9 100644 --- a/src/internal/task/task_stack_amd64_windows.go +++ b/src/internal/task/task_stack_amd64_windows.go @@ -1,3 +1,4 @@ +//go:build scheduler.tasks && amd64 && windows // +build scheduler.tasks,amd64,windows package task diff --git a/src/internal/task/task_stack_arm.go b/src/internal/task/task_stack_arm.go index 5934f0284..18982e875 100644 --- a/src/internal/task/task_stack_arm.go +++ b/src/internal/task/task_stack_arm.go @@ -1,3 +1,4 @@ +//go:build scheduler.tasks && arm && !cortexm && !avr && !xtensa && !tinygo.riscv // +build scheduler.tasks,arm,!cortexm,!avr,!xtensa,!tinygo.riscv package task diff --git a/src/internal/task/task_stack_arm64.go b/src/internal/task/task_stack_arm64.go index d65c30c49..e4fd09b20 100644 --- a/src/internal/task/task_stack_arm64.go +++ b/src/internal/task/task_stack_arm64.go @@ -1,3 +1,4 @@ +//go:build scheduler.tasks && arm64 // +build scheduler.tasks,arm64 package task diff --git a/src/internal/task/task_stack_avr.go b/src/internal/task/task_stack_avr.go index 655280acb..96b7034d9 100644 --- a/src/internal/task/task_stack_avr.go +++ b/src/internal/task/task_stack_avr.go @@ -1,3 +1,4 @@ +//go:build scheduler.tasks && avr // +build scheduler.tasks,avr package task diff --git a/src/internal/task/task_stack_cortexm.go b/src/internal/task/task_stack_cortexm.go index 1d9969796..f61688808 100644 --- a/src/internal/task/task_stack_cortexm.go +++ b/src/internal/task/task_stack_cortexm.go @@ -1,3 +1,4 @@ +//go:build scheduler.tasks && cortexm // +build scheduler.tasks,cortexm package task diff --git a/src/internal/task/task_stack_esp32.go b/src/internal/task/task_stack_esp32.go index ee1046b05..a76688447 100644 --- a/src/internal/task/task_stack_esp32.go +++ b/src/internal/task/task_stack_esp32.go @@ -1,3 +1,4 @@ +//go:build scheduler.tasks && esp32 // +build scheduler.tasks,esp32 package task diff --git a/src/internal/task/task_stack_esp8266.go b/src/internal/task/task_stack_esp8266.go index 5c9442f57..4a01a6fff 100644 --- a/src/internal/task/task_stack_esp8266.go +++ b/src/internal/task/task_stack_esp8266.go @@ -1,3 +1,4 @@ +//go:build scheduler.tasks && esp8266 // +build scheduler.tasks,esp8266 package task diff --git a/src/internal/task/task_stack_tinygoriscv.go b/src/internal/task/task_stack_tinygoriscv.go index 6f20eebf1..36ef742e2 100644 --- a/src/internal/task/task_stack_tinygoriscv.go +++ b/src/internal/task/task_stack_tinygoriscv.go @@ -1,3 +1,4 @@ +//go:build scheduler.tasks && tinygo.riscv // +build scheduler.tasks,tinygo.riscv package task |