File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -72,23 +72,22 @@ func isKnown(directive string) bool {
72
72
return false
73
73
}
74
74
75
+ // Found by running the following command on the source of go.
76
+ // git grep -o -E -h '//go:[a-z_-]+' -- ':!**/*_test.go' ':!test/' ':!**/testdata/**' | sort -u
77
+ // See https://pkg.go.dev/cmd/[email protected] #hdr-Compiler_Directives
75
78
var known = []string {
76
- // Found by running the following command on the source of go.
77
- // git grep -o -E -h '//go:[a-z_]+' -- ':!**/*_test.go' ':!test/' ':!**/testdata/**' | sort -u
78
- "binary" ,
79
79
"build" ,
80
- "buildsomethingelse" ,
81
80
"cgo_dynamic_linker" ,
82
81
"cgo_export_dynamic" ,
83
82
"cgo_export_static" ,
84
83
"cgo_import_dynamic" ,
85
84
"cgo_import_static" ,
86
85
"cgo_ldflag" ,
87
86
"cgo_unsafe_args" ,
87
+ "debug" ,
88
88
"embed" ,
89
89
"generate" ,
90
90
"linkname" ,
91
- "name" ,
92
91
"nocheckptr" ,
93
92
"noescape" ,
94
93
"noinline" ,
@@ -101,5 +100,6 @@ var known = []string{
101
100
"systemstack" ,
102
101
"uintptrescapes" ,
103
102
"uintptrkeepalive" ,
103
+ "wasmimport" ,
104
104
"yeswritebarrierrec" ,
105
105
}
You can’t perform that action at this time.
0 commit comments