tools/go/analysis
Alan Donovan 0a8e63141f go/analysis/passes/printf: fix false negative with nested pointers
Pointers to compound objects (structs, slices, arrays, maps) are only
followed by fmt if the pointer is at the top level of an argument. This
is to minimise the chances of fmt running into loops.

However, vet did not follow this rule. It likely doesn't help that fmt
does not document that restriction well, which is being tracked in
 #28625.

This change was originally made to cmd/vet as
https://go-review.googlesource.com/c/147997.

Updates #27672.

Change-Id: I65944cf355baedb4578af57046e2bbfd3fe6a9dc
Reviewed-on: https://go-review.googlesource.com/c/149319
Reviewed-by: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
2018-11-13 19:37:33 +00:00
..
analysistest go/analysis/cmd/analyze: install all analyzers 2018-10-19 17:03:54 +00:00
cmd go/analysis/cmd/vet-lite: remove deprecation warnings 2018-11-13 15:29:50 +00:00
internal go/analysis/internal/analysisflags: add flag aliases for renames 2018-11-13 19:21:26 +00:00
multichecker go/analysis/cmd/vet-lite: make CLI closer to cmd/vet 2018-11-09 19:31:51 +00:00
passes go/analysis/passes/printf: fix false negative with nested pointers 2018-11-13 19:37:33 +00:00
singlechecker go/analysis/internal/analysisflags: common flag handling 2018-10-19 17:43:12 +00:00
analysis.go go/analysis: write package documentation 2018-10-08 17:31:26 +00:00
doc.go go/analysis/cmd/vet: new name for cmd/analyze 2018-10-19 18:46:07 +00:00
validate.go go/analysis: validate: report duplicates among analyzers (roots) 2018-10-11 19:55:00 +00:00