Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 39 for ellipsisOk (0.18 sec)

  1. src/go/types/call.go

    	if sig.variadic {
    		if ddd {
    			// variadic_func(a, b, c...)
    			if len(call.Args) == 1 && nargs > 1 {
    				// f()... is not permitted if f() is multi-valued
    				check.errorf(inNode(call, call.Ellipsis), InvalidDotDotDot, "cannot use ... with %d-valued %s", nargs, call.Args[0])
    				return
    			}
    		} else {
    			// variadic_func(a, b, c)
    			if nargs >= npars-1 {
    				// Create custom parameters for arguments: keep
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  2. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h

    GTEST_API_ size_t GetThreadCount();
    
    // Passing non-POD classes through ellipsis (...) crashes the ARM
    // compiler and generates a warning in Sun Studio.  The Nokia Symbian
    // and the IBM XL C/C++ compiler try to instantiate a copy constructor
    // for objects passed through ellipsis (...), failing for uncopyable
    // objects.  We define this to ensure that only POD is passed through
    // ellipsis on these systems.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 67.2K bytes
    - Viewed (0)
  3. src/go/types/generate_test.go

    					if isIdent(n.Args[0], "pos") {
    						pos := n.Args[0].Pos()
    						fun := &ast.SelectorExpr{X: newIdent(pos, "posn"), Sel: newIdent(pos, "Pos")}
    						arg := &ast.CallExpr{Fun: fun, Lparen: pos, Args: nil, Ellipsis: token.NoPos, Rparen: pos}
    						n.Args[0] = arg
    						return false
    					}
    				case "addf":
    					// rewrite err.addf(pos, ...) to err.addf(posn, ...)
    					if isIdent(n.Args[0], "pos") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/call.go

    	if sig.variadic {
    		if ddd {
    			// variadic_func(a, b, c...)
    			if len(call.ArgList) == 1 && nargs > 1 {
    				// f()... is not permitted if f() is multi-valued
    				//check.errorf(call.Ellipsis, "cannot use ... with %d-valued %s", nargs, call.ArgList[0])
    				check.errorf(call, InvalidDotDotDot, "cannot use ... with %d-valued %s", nargs, call.ArgList[0])
    				return
    			}
    		} else {
    			// variadic_func(a, b, c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  5. src/net/netip/netip_test.go

    		"fe80::1%",
    		// IPv6 (without ellipsis) with too many fields for trailing embedded IPv4.
    		"ffff:ffff:ffff:ffff:ffff:ffff:ffff:192.168.140.255",
    		// IPv6 (with ellipsis) with too many fields for trailing embedded IPv4.
    		"ffff::ffff:ffff:ffff:ffff:ffff:ffff:192.168.140.255",
    		// IPv6 with invalid embedded IPv4.
    		"::ffff:192.168.140.bad",
    		// IPv6 with multiple ellipsis ::.
    		"fe80::1::1",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      dense->strides.resize(dense->dims);
      dense->begin_mask = 0;
      dense->end_mask = 0;
      dense->shrink_axis_mask = 0;
    
      // Count number of new_axis after ellipsis. This helps in calculating the
      // number of dimensions ellipsis represents in the sparse spec.
      bool ellipsis_seen = false;
      int num_new_axis_after_ellipsis = 0;
      for (int sparse_index = 0; sparse_index < sparse.dims; ++sparse_index) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go

    		argnum := 0
    		for _, fld := range list {
    			t := pass.TypesInfo.Types[fld.Type].Type
    
    			// Work around https://golang.org/issue/28277.
    			if t == nil {
    				if ell, ok := fld.Type.(*ast.Ellipsis); ok {
    					t = types.NewSlice(pass.TypesInfo.Types[ell.Elt].Type)
    				}
    			}
    
    			align := int(arch.sizes.Alignof(t))
    			size := int(arch.sizes.Sizeof(t))
    			offset += -offset & (align - 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  8. src/go/types/expr.go

    	x.typ = Typ[Invalid]
    
    	switch e := e.(type) {
    	case *ast.BadExpr:
    		goto Error // error was reported before
    
    	case *ast.Ident:
    		check.ident(x, e, nil, false)
    
    	case *ast.Ellipsis:
    		// ellipses are handled explicitly where they are legal
    		// (array composite literals and parameter lists)
    		check.error(e, BadDotDotDotSyntax, "invalid use of '...'")
    		goto Error
    
    	case *ast.BasicLit:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  9. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-internal.h

    // null pointer literal (i.e. NULL or any 0-valued compile-time
    // integral constant).
    #ifdef GTEST_ELLIPSIS_NEEDS_POD_
    // We lose support for NULL detection where the compiler doesn't like
    // passing non-POD classes through ellipsis (...).
    # define GTEST_IS_NULL_LITERAL_(x) false
    #else
    # define GTEST_IS_NULL_LITERAL_(x) \
        (sizeof(::testing::internal::IsNullLiteralHelper(x)) == 1)
    #endif  // GTEST_ELLIPSIS_NEEDS_POD_
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf.mlir

    // CHECK-SAME: %[[INPUT:[a-z0-9]+]]: tensor<2x4x8x16x32x64xf32>
    func.func @strided_slice_ellipsis_mask(%input: tensor<2x4x8x16x32x64xf32>) {
      // For StridedSlice input[1, ..., 8:, :10, 2:6:2]
      // The ellipsis mask is applied to dim #1, #2, i.e, we get canonicalized
      // slice input[1, :, :, 8:, :10, 2:6:2]
    
      // The start, limit indices and strides attributes of mhlo.slice would
      // reflect the canonicalized slice.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 335.5K bytes
    - Viewed (0)
Back to top