diff options
| author | Daniel Martí <mvdan@mvdan.cc> | 2018-02-03 15:36:38 +0000 |
|---|---|---|
| committer | Daniel Martí <mvdan@mvdan.cc> | 2018-02-23 18:31:55 +0000 |
| commit | bae3fd66279cf679b686ae68c35980334d9ff315 (patch) | |
| tree | 47cc54e16d33cde94f2f133d5a11734721518710 /src/runtime/malloc.go | |
| parent | 0681c7c31b5922f08f31404023e6b295f35812fe (diff) | |
| download | go-bae3fd66279cf679b686ae68c35980334d9ff315.tar.xz | |
cmd/vet: use type info to detect the atomic funcs
Simply checking if a name is "atomic" isn't enough, as that might be a
var or another imported package. Now that vet requires type information,
we can do better. And add a simple regression test.
Change-Id: Ibd2004428374e3628cd3cd0ffb5f37cedaf448ea
Reviewed-on: https://go-review.googlesource.com/91795
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/runtime/malloc.go')
0 files changed, 0 insertions, 0 deletions
