aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/api
AgeCommit message (Collapse)Author
2013-03-06all: delete a couple of mentions of the exp and old treesRob Pike
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/7551043
2013-02-01bytes, strings: add TrimPrefix and TrimSuffixBrad Fitzpatrick
Everybody either gets confused and thinks this is TrimLeft/TrimRight or does this by hand which gets repetitive looking. R=rsc, kevlar CC=golang-dev https://golang.org/cl/7239044
2013-01-28cmd/api: normalize byte to uint8 and rune to int32Brad Fitzpatrick
R=golang-dev, adg, mikioh.mikioh CC=golang-dev https://golang.org/cl/7195049
2013-01-22cmd/api: fix type scrubbingBrad Fitzpatrick
It wasn't removing names from func parameters for func types, and it was handling "a, b string" as "string", not "string, string". Fixes #4688 R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7181051
2013-01-19cmd/api: sort featuresAnthony Martin
R=golang-dev, minux.ma, bradfitz CC=golang-dev https://golang.org/cl/7141062
2012-11-19cmd/api: speed up API check by 2x, caching parser.ParseFile callsBrad Fitzpatrick
Saves 5 seconds on my machine. If Issue 4380 is fixed this clone can be removed. Update #4380 R=golang-dev, remyoudompheng, minux.ma, gri CC=golang-dev https://golang.org/cl/6845058
2012-11-13cmd/api: use one token.FileSet for all contextsBrad Fitzpatrick
Prep for future CL. R=gri CC=golang-dev https://golang.org/cl/6843048
2012-11-08cmd/api: bug fix for goapi's lame type checkerBrad Fitzpatrick
This is blocking me submitting the net fd timeout CL, since goapi chokes on my constant. The much more extensive fix to goapi's type checker in pending review in https://golang.org/cl/6742050 But I'd rather get this quick fix in first. R=golang-dev, mikioh.mikioh CC=golang-dev https://golang.org/cl/6818104
2012-10-30cmd/api: handle contexts re-convergingBrad Fitzpatrick
Fixes #4303 R=golang-dev, adg CC=golang-dev https://golang.org/cl/6816058
2012-10-30cmd/api: add more testsBrad Fitzpatrick
Feature extraction was tested before, but not the final diffs. This CL breaks function main into a smaller main + testable compareAPI. No functional changes. R=golang-dev, adg CC=golang-dev https://golang.org/cl/6820057
2012-10-04cmd/api: add exception fileRob Pike
Fixes build. R=golang-dev, adg, bradfitz, dsymonds, dave CC=golang-dev https://golang.org/cl/6586074
2012-09-27cmd/api: delete redundant text from deletion messageRob Pike
R=bradfitz, minux.ma, rsc CC=golang-dev https://golang.org/cl/6543064
2012-09-24cmd/dist: new version for string for development branchRuss Cox
Remove VERSION, which was forcing version to 'devel'. Old: $ go version go version devel New: $ go version go version devel +0a3866d6cc6b Mon Sep 24 20:08:05 2012 -0400 The date and time (and time zone) is that of the most recent commit, not the time of the build itself. With some effort we could normalize the zone, but I don't think it's worth the effort (more C coding, since Mercurial is unhelpful). R=r, dsymonds CC=golang-dev https://golang.org/cl/6569049
2012-09-19cmd/api: fix signatures like func(x, y, z int)Mikio Hara
Fixes writing of function parameter, result lists which consist of multiple named or unnamed items with same type. Fixes #4011. R=golang-dev, bsiegert, bradfitz, rsc CC=golang-dev https://golang.org/cl/6475062
2012-09-18cmd/api: allow extension of interfaces with unexported methodsRuss Cox
Fixes #4061. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6525047
2012-08-28cmd/api: recognize version "devel" as dev. branch and apply -nextShenghou Ma
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6476066
2012-06-08cmd/api: handle empty API file, ignore -next in releaseRuss Cox
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6298063
2012-06-04api: add Linux/ARM to go1 APIShenghou Ma
It's very unfortunate that the type of Data field of struct RawSockaddr is [14]uint8 on Linux/ARM instead of [14]int8 on all the others. btw, it should be [14]int8 according to my header files. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6275050
2012-06-01api: add FreeBSD to go1 APIBrad Fitzpatrick
Now that gri has made go/parser 15% faster, I offer this change to slow back down cmd/api ~proportionately, adding FreeBSD to the go1-checked set of platforms. Really we should have done this earlier. This will prevent us from breaking FreeBSD compatibility accidentally in the future. R=golang-dev, r CC=golang-dev https://golang.org/cl/6279044
2012-05-23cmd/api: add flag to specify contextsBrad Fitzpatrick
I needed this to explore per-GOOS/GOARCH differences in pkg syscall for a recent CL. Others may find it useful too. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6236046
2012-05-22cmd/api: add api/next.txtBrad Fitzpatrick
This quiets all.bash noise for upcoming features we know about. The all.bash warnings will now only print for things not in next.txt (or in next.txt but not in the API). Once an API is frozen, we rename next.txt to a new frozen file (like go1.txt) Fixes #3651 R=golang-dev, r CC=golang-dev https://golang.org/cl/6218069
2012-04-10cmd/api: allow addition of APIShenghou Ma
R=bradfitz, rsc CC=golang-dev https://golang.org/cl/5991081
2012-03-17build: catch API changes during buildBrad Fitzpatrick
Adds new file api/go1.txt, locking down the current API. Any changes to the API will need to update that file. run.bash (but not make.bash, or Windows) will check for accidental API changes. R=golang-dev, dsymonds, rsc CC=golang-dev https://golang.org/cl/5820070
2012-03-11cmd/api: work on Windows again, and make gccgo files work a bit moreBrad Fitzpatrick
handle string and []byte conversions. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5754082
2012-03-12cmd/api: set compiler for all build contexts.David Symonds
The generated syscall files for Windows are still breaking "go tool api" (unknown function []byte); I'll look at fixing that separately. Fixes #3285. R=bradfitz CC=golang-dev https://golang.org/cl/5777062
2012-03-01go/build: replace FindTree, ScanDir, Tree, DirInfo with Import, PackageRuss Cox
This is an API change, but one I have been promising would happen when it was clear what the go command needed. This is basically a complete replacement of what used to be here. build.Tree is gone. build.DirInfo is expanded and now called build.Package. build.FindTree is now build.Import(package, srcDir, build.FindOnly). The returned *Package contains information that FindTree returned, but applicable only to a single package. build.ScanDir is now build.ImportDir. build.FindTree+build.ScanDir is now build.Import. The new Import API allows specifying the source directory, in order to resolve local imports (import "./foo") and also allows scanning of packages outside of $GOPATH. They will come back with less information in the Package, but they will still work. The old go/build API exposed both too much and too little. This API is much closer to what the go command needs, and it works well enough in the other places where it is used. Path is gone, so it can no longer be misused. (Fixes issue 2749.) This CL updates clients of go/build other than the go command. The go command changes are in a separate CL, to be submitted at the same time. R=golang-dev, r, alex.brainman, adg CC=golang-dev https://golang.org/cl/5713043
2012-02-21cmd/api: record return type of functions for variable typecheck.Rémy Oudompheng
Also cleanup the resolveName method. Fixes failure on go/build declaration: var ToolDir = filepath.Join(...) R=golang-dev, bradfitz CC=golang-dev, remy https://golang.org/cl/5681043
2012-02-18cmd/api: s/ideal-bool/bool/Russ Cox
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5674105
2012-02-14cmd/api: fix typo.Nigel Tao
R=gri, r CC=golang-dev https://golang.org/cl/5659048
2012-02-10cmd/api: follow constant referencesBrad Fitzpatrick
For gccgo. Also removes bunch of special cases. Fixes #2906 R=golang-dev, remyoudompheng CC=golang-dev https://golang.org/cl/5644050
2012-02-07cmd/api: compare multiple contextsBrad Fitzpatrick
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5626045
2012-02-01all packages: fix various typosRobert Griesemer
Detected semi-automatically. There are probably more. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5620046
2012-01-31go/doc: enable AllMethods flag (and fix logic)Robert Griesemer
- enable AllMethods flag (default: not set) - fix logic determining which methods to show - added respective test case in testdata/e.go for AllMethods = false - added test case set for AllMethods = true The critical changes/files to look at are: - testdata/e{0,1,2}.golden: T4.M should only show up as method of T5 in e2.golden - reader.go: always include top-level methods, and negate former logic for embedded methods (rewrote as a switch for better comprehensability) Fixes #2791. R=rsc, rsc CC=golang-dev https://golang.org/cl/5576057
2012-01-31build: move goapi, quietgcc, cgo, gotype, ebnflint into go-toolRuss Cox
R=golang-dev, r CC=golang-dev https://golang.org/cl/5552054