Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for buildtags (0.23 sec)

  1. src/cmd/go/internal/test/flagdefs.go

    	"appends":          true,
    	"asmdecl":          true,
    	"assign":           true,
    	"atomic":           true,
    	"bool":             true,
    	"bools":            true,
    	"buildtag":         true,
    	"buildtags":        true,
    	"cgocall":          true,
    	"composites":       true,
    	"copylocks":        true,
    	"defers":           true,
    	"directive":        true,
    	"errorsas":         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)
  2. src/crypto/purego_test.go

    		for GOARCH := range allGOARCH {
    			context := build.Context{
    				GOOS:      "linux", // darwin has custom assembly
    				GOARCH:    GOARCH,
    				GOROOT:    testenv.GOROOT(t),
    				Compiler:  build.Default.Compiler,
    				BuildTags: []string{"purego", "math_big_pure_go"},
    			}
    
    			pkg, err := context.Import(pkgName, "", 0)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if len(pkg.SFiles) == 0 {
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. src/cmd/fix/buildtag.go

    	"strings"
    )
    
    func init() {
    	register(buildtagFix)
    }
    
    const buildtagGoVersionCutoff = "go1.18"
    
    var buildtagFix = fix{
    	name: "buildtag",
    	date: "2021-08-25",
    	f:    buildtag,
    	desc: `Remove +build comments from modules using Go 1.18 or later`,
    }
    
    func buildtag(f *ast.File) bool {
    	if version.Compare(*goVersion, buildtagGoVersionCutoff) < 0 {
    		return false
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build go1.16
    // +build go1.16
    
    // Package buildtag defines an Analyzer that checks build tags.
    package buildtag
    
    import (
    	"go/ast"
    	"go/build/constraint"
    	"go/parser"
    	"go/token"
    	"strings"
    	"unicode"
    
    	"golang.org/x/tools/go/analysis"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. src/cmd/fix/buildtag_test.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func init() {
    	addTestCases(buildtagTests, buildtag)
    }
    
    var buildtagTests = []testCase{
    	{
    		Name:    "buildtag.oldGo",
    		Version: "go1.10",
    		In: `//go:build yes
    // +build yes
    
    package main
    `,
    	},
    	{
    		Name:    "buildtag.new",
    		Version: "go1.99",
    		In: `//go:build yes
    // +build yes
    
    package main
    `,
    		Out: `//go:build yes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 522 bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag_old.go

    // license that can be found in the LICENSE file.
    
    // TODO(rsc): Delete this file once Go 1.17 comes out and we can retire Go 1.15 support.
    
    //go:build !go1.16
    // +build !go1.16
    
    // Package buildtag defines an Analyzer that checks build tags.
    package buildtag
    
    import (
    	"bytes"
    	"fmt"
    	"go/ast"
    	"go/parser"
    	"strings"
    	"unicode"
    
    	"golang.org/x/tools/go/analysis"
    	"golang.org/x/tools/go/analysis/passes/internal/analysisutil"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. src/cmd/vet/main.go

    	"golang.org/x/tools/go/analysis/passes/assign"
    	"golang.org/x/tools/go/analysis/passes/atomic"
    	"golang.org/x/tools/go/analysis/passes/bools"
    	"golang.org/x/tools/go/analysis/passes/buildtag"
    	"golang.org/x/tools/go/analysis/passes/cgocall"
    	"golang.org/x/tools/go/analysis/passes/composite"
    	"golang.org/x/tools/go/analysis/passes/copylock"
    	"golang.org/x/tools/go/analysis/passes/defers"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/internal/tooling/GradleProjectBuilder.java

            return tasks.getNames().stream()
                .map(tasks::findByName)
                .filter(Objects::nonNull)
                .map(task -> buildTask(owner, task))
                .collect(toList());
        }
    
        private static LaunchableGradleProjectTask buildTask(DefaultGradleProject owner, Task task) {
            LaunchableGradleProjectTask model = buildFromTask(new LaunchableGradleProjectTask(), owner.getProjectIdentifier(), task);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 13:57:30 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/directive/directive.go

    package comment, and only in package main or *_test.go files.
    
    Support for other known directives may be added in the future.
    
    This analyzer does not check //go:build, which is handled by the
    buildtag analyzer.
    `
    
    var Analyzer = &analysis.Analyzer{
    	Name: "directive",
    	Doc:  Doc,
    	URL:  "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/directive",
    	Run:  runDirective,
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/modules.txt

    golang.org/x/tools/go/analysis/passes/asmdecl
    golang.org/x/tools/go/analysis/passes/assign
    golang.org/x/tools/go/analysis/passes/atomic
    golang.org/x/tools/go/analysis/passes/bools
    golang.org/x/tools/go/analysis/passes/buildtag
    golang.org/x/tools/go/analysis/passes/cgocall
    golang.org/x/tools/go/analysis/passes/composite
    golang.org/x/tools/go/analysis/passes/copylock
    golang.org/x/tools/go/analysis/passes/ctrlflow
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top