- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for unsafeptr (0.16 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/vet/testdata/unsafeptr/unsafeptr.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package unsafeptr import "unsafe" func _() { var x unsafe.Pointer var y uintptr x = unsafe.Pointer(y) // ERROR "possible misuse of unsafe.Pointer" _ = x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 20 15:46:42 UTC 2019 - 321 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/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/internal/test2json/testdata/vet.test
--- PASS: TestVet/4 (0.16s) vet_test.go:114: files: ["testdata/copylock.go" "testdata/print.go"] --- PASS: TestVet/1 (0.07s) vet_test.go:114: files: ["testdata/atomic.go" "testdata/lostcancel.go" "testdata/unsafeptr.go"] --- PASS: TestVet/7 (0.19s) vet_test.go:114: files: ["testdata/deadcode.go" "testdata/shift.go"] --- PASS: TestVetDirs (0.01s) --- PASS: TestVetDirs/testingpkg (0.06s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 01 16:13:47 UTC 2020 - 3.1K bytes - Viewed (0) -
src/cmd/internal/test2json/testdata/smiley.test
--- PASS: Test☺☹/4 (0.16s) vet_test.go:114: φιλεσ: ["testdata/copylock.go" "testdata/print.go"] --- PASS: Test☺☹/1 (0.07s) vet_test.go:114: φιλεσ: ["testdata/atomic.go" "testdata/lostcancel.go" "testdata/unsafeptr.go"] --- PASS: Test☺☹/7 (0.19s) vet_test.go:114: φιλεσ: ["testdata/deadcode.go" "testdata/shift.go"] --- PASS: Test☺☹Dirs (0.01s) --- PASS: Test☺☹Dirs/testingpkg (0.06s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 01 16:13:47 UTC 2020 - 3.3K 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)