cl: process llgo:skip on const, type declaration, deprecate llgo:skip on import

This commit is contained in:
Li Jie
2025-01-17 10:55:41 +08:00
parent d5d2d6826f
commit 623b5a511a
9 changed files with 162 additions and 15 deletions

View File

@@ -16,7 +16,9 @@
package subtle
// llgo:skip XORBytes
import (
_ "unsafe"
)
// llgo:skip XORBytes
type _xor struct{}

View File

@@ -16,7 +16,9 @@
package fmt
// llgo:skipall
import (
_ "unsafe"
)
// // llgo:skipall
type _fmt struct{}

View File

@@ -16,7 +16,9 @@
package reflectlite
// llgo:skipall
import (
_ "unsafe"
)
// llgo:skipall
type _reflectlite struct{}

View File

@@ -16,7 +16,9 @@
package unix
// llgo:skipall
import (
_ "unsafe"
)
// llgo:skipall
type _unix struct{}

View File

@@ -16,7 +16,9 @@
package reflect
// llgo:skipall
import (
_ "unsafe"
)
// llgo:skipall
type _reflect struct{}

View File

@@ -16,7 +16,6 @@
package syscall
// llgo:skipall
import (
"unsafe"
@@ -25,6 +24,9 @@ import (
"github.com/goplus/llgo/runtime/internal/clite/syscall"
)
// llgo:skipall
type _syscall struct{}
type Timespec syscall.Timespec
type Timeval syscall.Timeval

View File

@@ -16,7 +16,6 @@
package time
// llgo:skipall
import (
"unsafe"
@@ -24,6 +23,9 @@ import (
"github.com/goplus/llgo/runtime/internal/clite/time"
)
// llgo:skipall
type _time struct{}
type Time struct {
// wall and ext encode the wall time seconds, wall time nanoseconds,
// and optional monotonic clock reading in nanoseconds.