go/internal/typeparams
Robert Findley 43b469a3a9 go/analysis/passes/printf: update logic now that type parameters are
interfaces

Now that the underlying of type parameters is their constraint
interface, a couple places in the printf analyzer need to be updated:
 - We need to explicitly exclude type parameters when looking at
   interfaces in isFormatter.
 - We need to consider at the element type, not its underlying, when
   looking at pointers to type parameters

Change-Id: I8c6843e001a98d45ff0f30df305e3536335f567e
Reviewed-on: https://go-review.googlesource.com/c/tools/+/364678
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2021-11-17 19:16:04 +00:00
..
genericfeatures internal/typeparams: guard against generics in stdlib tests 2021-10-25 20:36:35 +00:00
common.go go/analysis/passes/printf: update logic now that type parameters are 2021-11-17 19:16:04 +00:00
common_test.go internal/typeparams: update x/tools for recent typeparams changes 2021-08-03 15:39:08 +00:00
copytermlist.go internal/typeparams: copy the term list algorithm from go/types 2021-10-14 22:21:32 +00:00
enabled_go117.go Revert "internal/typeparams: hide go1.18 API usage behind a build constraint" 2021-09-28 23:30:19 +00:00
enabled_go118.go Revert "internal/typeparams: hide go1.18 API usage behind a build constraint" 2021-09-28 23:30:19 +00:00
normalize.go internal/typeparams: normalize the underlying constraint interface 2021-11-16 01:10:28 +00:00
normalize_test.go internal/typeparams: normalize the underlying constraint interface 2021-11-16 01:10:28 +00:00
termlist.go internal/typeparams: copy the term list algorithm from go/types 2021-10-14 22:21:32 +00:00
typeparams_go117.go go/analysis/passes/composite: update for generics 2021-10-25 21:11:43 +00:00
typeparams_go118.go go/internal/gcimporter: add support for the Go 1.18 export data version 2021-10-25 14:51:03 +00:00
typeparams_test.go internal/typeparams: filter out API diffs related to types.Environment 2021-09-29 15:31:12 +00:00
typeterm.go internal/typeparams: copy the term list algorithm from go/types 2021-10-14 22:21:32 +00:00