From 713699d8ad3085ffef214f6358fa9b4e0b3e9f31 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Tue, 27 Aug 2013 18:49:13 -0400 Subject: [PATCH] go.tools: add copyright messages to source files. R=r CC=golang-dev https://golang.org/cl/13305043 --- cmd/oracle/main.go | 4 ++++ importer/importer.go | 4 ++++ importer/pkginfo.go | 4 ++++ importer/source.go | 4 ++++ importer/source_test.go | 4 ++++ importer/util.go | 4 ++++ oracle/callees.go | 4 ++++ oracle/callers.go | 4 ++++ oracle/callgraph.go | 4 ++++ oracle/callstack.go | 4 ++++ oracle/describe.go | 4 ++++ oracle/freevars.go | 4 ++++ oracle/implements.go | 4 ++++ oracle/oracle.go | 4 ++++ oracle/oracle_test.go | 4 ++++ oracle/peers.go | 4 ++++ pointer/analysis.go | 4 ++++ pointer/api.go | 4 ++++ pointer/callgraph.go | 4 ++++ pointer/doc.go | 4 ++++ pointer/gen.go | 4 ++++ pointer/intrinsics.go | 4 ++++ pointer/labels.go | 4 ++++ pointer/pointer_test.go | 4 ++++ pointer/print.go | 4 ++++ pointer/solve.go | 4 ++++ pointer/util.go | 4 ++++ ssa/blockopt.go | 4 ++++ ssa/builder.go | 4 ++++ ssa/builder_test.go | 4 ++++ ssa/const.go | 4 ++++ ssa/create.go | 4 ++++ ssa/doc.go | 4 ++++ ssa/dom.go | 4 ++++ ssa/emit.go | 4 ++++ ssa/example_test.go | 4 ++++ ssa/func.go | 4 ++++ ssa/interp/interp_test.go | 4 ++++ ssa/interp/value.go | 4 ++++ ssa/lift.go | 4 ++++ ssa/lvalue.go | 4 ++++ ssa/print.go | 4 ++++ ssa/promote.go | 4 ++++ ssa/sanity.go | 4 ++++ ssa/source.go | 4 ++++ ssa/source_test.go | 4 ++++ ssa/ssa.go | 4 ++++ ssa/ssadump.go | 4 ++++ ssa/stdlib_test.go | 4 ++++ ssa/testmain.go | 4 ++++ ssa/util.go | 4 ++++ ssa/visit.go | 4 ++++ 52 files changed, 208 insertions(+) diff --git a/cmd/oracle/main.go b/cmd/oracle/main.go index 5b516a2c9b..6ebd731cdf 100644 --- a/cmd/oracle/main.go +++ b/cmd/oracle/main.go @@ -1,3 +1,7 @@ +// Copyright 2013 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. + // oracle: a tool for answering questions about Go source code. // // Each query prints its results to the standard output in an diff --git a/importer/importer.go b/importer/importer.go index 9248d73e45..0fb5f2ff6c 100644 --- a/importer/importer.go +++ b/importer/importer.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 importer defines the Importer, which loads, parses and // type-checks packages of Go code plus their transitive closure, and // retains both the ASTs and the derived facts. diff --git a/importer/pkginfo.go b/importer/pkginfo.go index 64857d7c2e..e032d3e1eb 100644 --- a/importer/pkginfo.go +++ b/importer/pkginfo.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 importer // TODO(gri): absorb this into go/types. diff --git a/importer/source.go b/importer/source.go index 77890723b9..d7b0cbf099 100644 --- a/importer/source.go +++ b/importer/source.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 importer // This file defines utilities for working with source positions. diff --git a/importer/source_test.go b/importer/source_test.go index 3be56cd7a5..961e0565a0 100644 --- a/importer/source_test.go +++ b/importer/source_test.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 importer_test // This file defines tests of source utilities. diff --git a/importer/util.go b/importer/util.go index a2865c8252..1c260dc974 100644 --- a/importer/util.go +++ b/importer/util.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 importer // This file defines various utility functions exposed by the package diff --git a/oracle/callees.go b/oracle/callees.go index b2122a2756..ad714ee950 100644 --- a/oracle/callees.go +++ b/oracle/callees.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 oracle import ( diff --git a/oracle/callers.go b/oracle/callers.go index c6a36c9329..b9315d6a81 100644 --- a/oracle/callers.go +++ b/oracle/callers.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 oracle import ( diff --git a/oracle/callgraph.go b/oracle/callgraph.go index d944a42b05..0dae7dcf3a 100644 --- a/oracle/callgraph.go +++ b/oracle/callgraph.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 oracle import ( diff --git a/oracle/callstack.go b/oracle/callstack.go index 6dc3cf1032..c873a7516d 100644 --- a/oracle/callstack.go +++ b/oracle/callstack.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 oracle import ( diff --git a/oracle/describe.go b/oracle/describe.go index 3698918e3b..6dd77875ba 100644 --- a/oracle/describe.go +++ b/oracle/describe.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 oracle import ( diff --git a/oracle/freevars.go b/oracle/freevars.go index e4d7c4ef92..b50fba5957 100644 --- a/oracle/freevars.go +++ b/oracle/freevars.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 oracle import ( diff --git a/oracle/implements.go b/oracle/implements.go index 6746e8b54b..75f6d31e35 100644 --- a/oracle/implements.go +++ b/oracle/implements.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 oracle import ( diff --git a/oracle/oracle.go b/oracle/oracle.go index 47aa914f2d..c1e2ca208a 100644 --- a/oracle/oracle.go +++ b/oracle/oracle.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 oracle // This file defines oracle.Main, the entry point for the oracle tool. diff --git a/oracle/oracle_test.go b/oracle/oracle_test.go index 736c4a1a2b..1517b3fabe 100644 --- a/oracle/oracle_test.go +++ b/oracle/oracle_test.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 oracle_test // This file defines a test framework for oracle queries. diff --git a/oracle/peers.go b/oracle/peers.go index 644dfccb61..d27dce989f 100644 --- a/oracle/peers.go +++ b/oracle/peers.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 oracle import ( diff --git a/pointer/analysis.go b/pointer/analysis.go index e00cc9f6d4..c842443c7c 100644 --- a/pointer/analysis.go +++ b/pointer/analysis.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 pointer // This file defines the entry points into the pointer analysis. diff --git a/pointer/api.go b/pointer/api.go index be594d1f1a..0587fe0cb9 100644 --- a/pointer/api.go +++ b/pointer/api.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 pointer import ( diff --git a/pointer/callgraph.go b/pointer/callgraph.go index de8489e45b..ef26a367e6 100644 --- a/pointer/callgraph.go +++ b/pointer/callgraph.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 pointer import ( diff --git a/pointer/doc.go b/pointer/doc.go index 6eabfbedf4..3d778442cd 100644 --- a/pointer/doc.go +++ b/pointer/doc.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 pointer implements Andersen's analysis, an inclusion-based diff --git a/pointer/gen.go b/pointer/gen.go index b13d47a0a0..0d2e1bde5e 100644 --- a/pointer/gen.go +++ b/pointer/gen.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 pointer // This file defines the constraint generation phase. diff --git a/pointer/intrinsics.go b/pointer/intrinsics.go index 632302373f..26322a7bc4 100644 --- a/pointer/intrinsics.go +++ b/pointer/intrinsics.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 pointer // This package defines the treatment of intrinsics, i.e. library diff --git a/pointer/labels.go b/pointer/labels.go index d24f9fd178..fec7a03912 100644 --- a/pointer/labels.go +++ b/pointer/labels.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 pointer import ( diff --git a/pointer/pointer_test.go b/pointer/pointer_test.go index 997b42a67b..b99694893e 100644 --- a/pointer/pointer_test.go +++ b/pointer/pointer_test.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 pointer_test // This test uses 'expectation' comments embedded within testdata/*.go diff --git a/pointer/print.go b/pointer/print.go index 78d45ca1c1..9184d3ab31 100644 --- a/pointer/print.go +++ b/pointer/print.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 pointer import "fmt" diff --git a/pointer/solve.go b/pointer/solve.go index 34916ca148..1cb04e53e7 100644 --- a/pointer/solve.go +++ b/pointer/solve.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 pointer // This file defines a naive Andersen-style solver for the inclusion diff --git a/pointer/util.go b/pointer/util.go index e722eef573..184250da50 100644 --- a/pointer/util.go +++ b/pointer/util.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 pointer import ( diff --git a/ssa/blockopt.go b/ssa/blockopt.go index 95036335bb..1253df1255 100644 --- a/ssa/blockopt.go +++ b/ssa/blockopt.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa // Simple block optimizations to simplify the control flow graph. diff --git a/ssa/builder.go b/ssa/builder.go index 36c0205311..06bac2191a 100644 --- a/ssa/builder.go +++ b/ssa/builder.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa // This file implements the BUILD phase of SSA construction. diff --git a/ssa/builder_test.go b/ssa/builder_test.go index 211395bda5..138b24c06e 100644 --- a/ssa/builder_test.go +++ b/ssa/builder_test.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa_test import ( diff --git a/ssa/const.go b/ssa/const.go index 51bcf0466c..2f9acd0bb3 100644 --- a/ssa/const.go +++ b/ssa/const.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa // This file defines the Const SSA value type. diff --git a/ssa/create.go b/ssa/create.go index e8eaf868a5..9af3fe27eb 100644 --- a/ssa/create.go +++ b/ssa/create.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa // This file implements the CREATE phase of SSA construction. diff --git a/ssa/doc.go b/ssa/doc.go index 2aba2ff967..6fc48c511e 100644 --- a/ssa/doc.go +++ b/ssa/doc.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa defines a representation of the elements of Go programs // (packages, types, functions, variables and constants) using a // static single-assignment (SSA) form intermediate representation diff --git a/ssa/dom.go b/ssa/dom.go index 2fe3098cab..d6e85b6e25 100644 --- a/ssa/dom.go +++ b/ssa/dom.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa // This file defines algorithms related to dominance. diff --git a/ssa/emit.go b/ssa/emit.go index d819f07b70..e13a2046ca 100644 --- a/ssa/emit.go +++ b/ssa/emit.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa // Helpers for emitting SSA instructions. diff --git a/ssa/example_test.go b/ssa/example_test.go index c7c5db922f..2803a6d7a9 100644 --- a/ssa/example_test.go +++ b/ssa/example_test.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa_test import ( diff --git a/ssa/func.go b/ssa/func.go index 33e30da8a1..c7764c27eb 100644 --- a/ssa/func.go +++ b/ssa/func.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa // This file implements the Function and BasicBlock types. diff --git a/ssa/interp/interp_test.go b/ssa/interp/interp_test.go index 12c14ffd86..6001184402 100644 --- a/ssa/interp/interp_test.go +++ b/ssa/interp/interp_test.go @@ -1,3 +1,7 @@ +// Copyright 2013 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. + // +build !windows,!plan9 package interp_test diff --git a/ssa/interp/value.go b/ssa/interp/value.go index ad7ca984a6..654e16d2bd 100644 --- a/ssa/interp/value.go +++ b/ssa/interp/value.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 interp // Values diff --git a/ssa/lift.go b/ssa/lift.go index 5549e542a2..5643b8c6ee 100644 --- a/ssa/lift.go +++ b/ssa/lift.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa // This file defines the lifting pass which tries to "lift" Alloc diff --git a/ssa/lvalue.go b/ssa/lvalue.go index 48ccf8db90..3ed7642a8d 100644 --- a/ssa/lvalue.go +++ b/ssa/lvalue.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa // lvalues are the union of addressable expressions and map-index diff --git a/ssa/print.go b/ssa/print.go index c5a256fe2f..16a5be8a75 100644 --- a/ssa/print.go +++ b/ssa/print.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa // This file implements the String() methods for all Value and diff --git a/ssa/promote.go b/ssa/promote.go index d7c7a2a535..1576510218 100644 --- a/ssa/promote.go +++ b/ssa/promote.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa // This file defines utilities for method-set computation including diff --git a/ssa/sanity.go b/ssa/sanity.go index dea827bec2..4b3eb11ff7 100644 --- a/ssa/sanity.go +++ b/ssa/sanity.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa // An optional pass for sanity-checking invariants of the SSA representation. diff --git a/ssa/source.go b/ssa/source.go index eef1073a6c..f490a32327 100644 --- a/ssa/source.go +++ b/ssa/source.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa // This file defines utilities for working with source positions diff --git a/ssa/source_test.go b/ssa/source_test.go index d6bd876801..6e27c4541e 100644 --- a/ssa/source_test.go +++ b/ssa/source_test.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa_test // This file defines tests of source-level debugging utilities. diff --git a/ssa/ssa.go b/ssa/ssa.go index 1300fcbfb5..25d22d7a31 100644 --- a/ssa/ssa.go +++ b/ssa/ssa.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa // This package defines a high-level intermediate representation for diff --git a/ssa/ssadump.go b/ssa/ssadump.go index 28f71cdfbd..33c020ed96 100644 --- a/ssa/ssadump.go +++ b/ssa/ssadump.go @@ -1,3 +1,7 @@ +// Copyright 2013 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. + // +build ignore package main diff --git a/ssa/stdlib_test.go b/ssa/stdlib_test.go index 9d8ad2ce90..8bfcdeafb6 100644 --- a/ssa/stdlib_test.go +++ b/ssa/stdlib_test.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa_test // This file runs the SSA builder in sanity-checking mode on all diff --git a/ssa/testmain.go b/ssa/testmain.go index 101831e2dc..9b735dfc97 100644 --- a/ssa/testmain.go +++ b/ssa/testmain.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa // CreateTestMainFunction synthesizes main functions for tests. diff --git a/ssa/util.go b/ssa/util.go index 94af12c132..0201c8a077 100644 --- a/ssa/util.go +++ b/ssa/util.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa // This file defines a number of miscellaneous utility functions. diff --git a/ssa/visit.go b/ssa/visit.go index 5437c57eb2..eccddcf5ee 100644 --- a/ssa/visit.go +++ b/ssa/visit.go @@ -1,3 +1,7 @@ +// Copyright 2013 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 ssa // This file defines utilities for visiting the SSA representation of