Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isSafeArith (0.09 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unsafeptr/unsafeptr.go

    				return true
    			}
    		}
    	}
    
    	// "(3) Conversion of a Pointer to a uintptr and back, with arithmetic."
    	return isSafeArith(info, x)
    }
    
    // isSafeArith reports whether x is a pointer arithmetic expression that is safe
    // to convert to unsafe.Pointer.
    func isSafeArith(info *types.Info, x ast.Expr) bool {
    	switch x := astutil.Unparen(x).(type) {
    	case *ast.CallExpr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top