- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 45 for unsafeptr (0.18 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unsafeptr/unsafeptr.go
"golang.org/x/tools/internal/aliases" ) //go:embed doc.go var doc string var Analyzer = &analysis.Analyzer{ Name: "unsafeptr", Doc: analysisutil.MustExtractDoc(doc, "unsafeptr"), URL: "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/unsafeptr", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, } func run(pass *analysis.Pass) (interface{}, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 4.7K bytes - Viewed (0) -
src/cmd/go/testdata/script/vet_flags.txt
stderr '-buildtags=false' ! stderr '-unsafeptr=false' # Issue 37030: "go vet <std package>" without other flags should disable the # unsafeptr check by default. go vet -n runtime stderr '-unsafeptr=false' ! stderr '-unreachable=false' # However, it should be enabled if requested explicitly. go vet -n -unsafeptr runtime stderr '-unsafeptr' ! stderr '-unsafeptr=false'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 21 14:58:44 UTC 2023 - 2.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unsafeptr/doc.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package unsafeptr defines an Analyzer that checks for invalid // conversions of uintptr to unsafe.Pointer. // // # Analyzer unsafeptr // // unsafeptr: check for invalid conversions of uintptr to unsafe.Pointer // // The unsafeptr analyzer reports likely incorrect uses of unsafe.Pointer // to convert integers to pointers. A conversion from uintptr to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 738 bytes - Viewed (0) -
src/cmd/vet/main.go
"golang.org/x/tools/go/analysis/passes/timeformat" "golang.org/x/tools/go/analysis/passes/unmarshal" "golang.org/x/tools/go/analysis/passes/unreachable" "golang.org/x/tools/go/analysis/passes/unsafeptr" "golang.org/x/tools/go/analysis/passes/unusedresult" ) func main() { telemetry.Start() objabi.AddVersionFlag() telemetry.Inc("vet/invocations") unitchecker.Main( appends.Analyzer,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 2.9K bytes - Viewed (0) -
src/internal/fmtsort/sort_test.go
"false:false true:true", }, { chanMap(), "CHAN0:0 CHAN1:1 CHAN2:2", }, { pointerMap(), "PTR0:0 PTR1:1 PTR2:2", }, { unsafePointerMap(), "UNSAFEPTR0:0 UNSAFEPTR1:1 UNSAFEPTR2:2", }, { map[toy]string{{7, 2}: "72", {7, 1}: "71", {3, 4}: "34"}, "{3 4}:34 {7 1}:71 {7 2}:72", }, { map[[2]int]string{{7, 2}: "72", {7, 1}: "71", {3, 4}: "34"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 6.9K bytes - Viewed (0) -
src/cmd/compile/internal/walk/builtin.go
memCond := ir.NewBinaryExpr(base.Pos, ir.OGT, mem, ir.NewUnaryExpr(base.Pos, ir.ONEG, typecheck.Conv(unsafePtr, types.Types[types.TUINTPTR]))) nif.Cond = ir.NewLogicalExpr(base.Pos, ir.OOROR, overflow, memCond) nifPtr := ir.NewIfStmt(base.Pos, nil, nil, nil) nifPtr.Cond = ir.NewBinaryExpr(base.Pos, ir.OEQ, unsafePtr, typecheck.NodNil()) nifPtr.Body.Append(mkcall("panicunsafeslicenilptr", nil, &nifPtr.Body))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 22:35:22 UTC 2024 - 31.2K bytes - Viewed (0) -
src/cmd/go/internal/test/flagdefs.go
"stringintconv": true, "structtag": true, "testinggoroutine": true, "tests": true, "timeformat": true, "unmarshal": true, "unreachable": true, "unsafeptr": true, "unusedresult": true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 01:02:40 UTC 2024 - 2.2K bytes - Viewed (0) -
src/cmd/vet/doc.go
timeformat check for calls of (time.Time).Format or time.Parse with 2006-02-01 unmarshal report passing non-pointer or non-interface values to unmarshal unreachable check for unreachable code unsafeptr check for invalid conversions of uintptr to unsafe.Pointer unusedresult check for unused results of calls to some functions For details and flags of a particular check, such as printf, run "go tool vet help printf".
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 00:17:30 UTC 2023 - 3.8K bytes - Viewed (0) -
src/cmd/vendor/modules.txt
golang.org/x/tools/go/analysis/passes/tests golang.org/x/tools/go/analysis/passes/timeformat golang.org/x/tools/go/analysis/passes/unmarshal golang.org/x/tools/go/analysis/passes/unreachable golang.org/x/tools/go/analysis/passes/unsafeptr golang.org/x/tools/go/analysis/passes/unusedresult golang.org/x/tools/go/analysis/unitchecker golang.org/x/tools/go/ast/astutil golang.org/x/tools/go/ast/inspector golang.org/x/tools/go/cfg
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 4.8K bytes - Viewed (0) -
src/cmd/internal/test2json/testdata/vet.json
{"Action":"output","Test":"TestVet/1","Output":" --- PASS: TestVet/1 (0.07s)\n"} {"Action":"output","Test":"TestVet/1","Output":" vet_test.go:114: files: [\"testdata/atomic.go\" \"testdata/lostcancel.go\" \"testdata/unsafeptr.go\"]\n"} {"Action":"pass","Test":"TestVet/1"} {"Action":"output","Test":"TestVet/7","Output":" --- PASS: TestVet/7 (0.19s)\n"}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 09 17:33:07 UTC 2022 - 11.8K bytes - Viewed (0)