Merge pull request #4203 from karl-zylinski/file-tags-without-comments

Make tags use #+ syntax instead of //+
This commit is contained in:
gingerBill
2024-09-19 12:36:43 +01:00
committed by GitHub
332 changed files with 665 additions and 510 deletions
+2 -2
View File
@@ -10,8 +10,8 @@
A test suite for `core:net`
*/
//+build !netbsd
//+build !openbsd
#+build !netbsd
#+build !openbsd
package test_core_net
import "core:testing"
+1 -1
View File
@@ -10,7 +10,7 @@
A test suite for `core:net`
*/
//+build freebsd
#+build freebsd
package test_core_net
import "core:net"
+8 -8
View File
@@ -34,8 +34,8 @@ package main
},
}, {// [2]
src = `
//+build linux, darwin, freebsd, openbsd, netbsd, haiku
//+build arm32, arm64
#+build linux, darwin, freebsd, openbsd, netbsd, haiku
#+build arm32, arm64
package main
`,
tags = {
@@ -57,10 +57,10 @@ package main
},
}, {// [3]
src = `
// +private
//+lazy
// +no-instrumentation
//+ignore
#+private
#+lazy
#+no-instrumentation
#+ignore
// some other comment
package main
`,
@@ -75,8 +75,8 @@ package main
},
}, {// [4]
src = `
//+build-project-name foo !bar, baz
//+build js wasm32, js wasm64p32
#+build-project-name foo !bar, baz
#+build js wasm32, js wasm64p32
package main
`,
tags = {
+1 -1
View File
@@ -1,4 +1,4 @@
//+build darwin, freebsd, openbsd, netbsd
#+build darwin, freebsd, openbsd, netbsd
package tests_core_posix
import "base:runtime"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build darwin, freebsd, openbsd, netbsd
#+build darwin, freebsd, openbsd, netbsd
package tests_core_posix
import "core:log"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build windows
#+build windows
package test_core_sys_windows
import "core:testing"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build windows
#+build windows
package test_core_sys_windows
import "base:intrinsics"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build windows
#+build windows
package test_core_sys_windows
import "base:intrinsics"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build windows
#+build windows
package test_core_sys_windows
import "core:testing"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build windows
#+build windows
package test_core_sys_windows
import "base:intrinsics"
@@ -1,4 +1,4 @@
//+build windows
#+build windows
package test_core_sys_windows // generated by win32gen
import "core:testing"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build windows
#+build windows
package test_core_sys_windows
import "core:testing"
+1 -1
View File
@@ -902,7 +902,7 @@ static void verify_error_helpers(ofstream& out) {
}
static void test_core_sys_windows(ofstream& out) {
out << "//+build windows" << endl
out << "#+build windows" << endl
<< "package " << __func__
<< " // generated by " << path(__FILE__).filename().replace_extension("").string() << endl
<< endl
@@ -264,7 +264,7 @@ write_test_suite :: proc(example_tests: []Example_Test) {
test_runner := strings.builder_make()
strings.write_string(&test_runner,
`//+private
`#+private
package documentation_verification
import "core:os"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build darwin, windows
#+build darwin, windows
package test_vendor_glfw
import "core:testing"
+1 -1
View File
@@ -1,4 +1,4 @@
//+build windows, linux, darwin
#+build windows, linux, darwin
package test_vendor_lua_54
import "core:testing"