diff --git a/cmd/oracle/main.go b/cmd/oracle/main.go index 5b516a2c..6ebd731c 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 9248d73e..0fb5f2ff 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 64857d7c..e032d3e1 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 77890723..d7b0cbf0 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 3be56cd7..961e0565 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 a2865c82..1c260dc9 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 b2122a27..ad714ee9 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 c6a36c93..b9315d6a 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 d944a42b..0dae7dcf 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 6dc3cf10..c873a751 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 3698918e..6dd77875 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 e4d7c4ef..b50fba59 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 6746e8b5..75f6d31e 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 47aa914f..c1e2ca20 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 736c4a1a..1517b3fa 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 644dfccb..d27dce98 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 e00cc9f6..c842443c 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 be594d1f..0587fe0c 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 de8489e4..ef26a367 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 6eabfbed..3d778442 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 b13d47a0..0d2e1bde 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 63230237..26322a7b 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 d24f9fd1..fec7a039 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 997b42a6..b9969489 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 78d45ca1..9184d3ab 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 34916ca1..1cb04e53 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 e722eef5..184250da 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 95036335..1253df12 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 36c02053..06bac219 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 211395bd..138b24c0 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 51bcf046..2f9acd0b 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 e8eaf868..9af3fe27 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 2aba2ff9..6fc48c51 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 2fe3098c..d6e85b6e 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 d819f07b..e13a2046 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 c7c5db92..2803a6d7 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 33e30da8..c7764c27 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 12c14ffd..60011844 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 ad7ca984..654e16d2 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 5549e542..5643b8c6 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 48ccf8db..3ed7642a 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 c5a256fe..16a5be8a 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 d7c7a2a5..15765102 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 dea827be..4b3eb11f 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 eef1073a..f490a323 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 d6bd8768..6e27c454 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 1300fcbf..25d22d7a 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 28f71cdf..33c020ed 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 9d8ad2ce..8bfcdeaf 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 101831e2..9b735dfc 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 94af12c1..0201c8a0 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 5437c57e..eccddcf5 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