protobuf-go/cmd/protoc-gen-go/testdata
Joe Tsai 8d5e6d6927 cmd/protoc-gen-go: improve generation of comments
The following improvements were made:
* All standalone comments above the "syntax" marker are preserved
similar to Java and some other generators.
* All standalone comments above the "package" marker are preserved
to be consistent with our former behavior.
* Leading comments are now generated for enums and extension fields.
* Single-line trailing comments are now generated for
enum values, message fields, and extension fields.
* The leading comments for each field that is part of a oneof are now
generated with the wrapper types rather than being shoved into the
comment for the oneof itself in an unreadable way.
* The deprecation marker is always generated as being above the declaration
rather than sometimes being an inlined comment.
* The deprecation marker is now properly generated for weak field setters.

Updates golang/protobuf#666

Change-Id: I7fd832dd4f86d15bfff70d7c22c6ba4934c05fcf
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/189238
Reviewed-by: Damien Neil <dneil@google.com>
2019-08-07 17:33:08 +00:00
..
annotations cmd/protoc-gen-go: improve generation of comments 2019-08-07 17:33:08 +00:00
comments cmd/protoc-gen-go: improve generation of comments 2019-08-07 17:33:08 +00:00
extensions cmd/protoc-gen-go: improve generation of comments 2019-08-07 17:33:08 +00:00
fieldnames cmd/protoc-gen-go: improve generation of comments 2019-08-07 17:33:08 +00:00
import_public cmd/protoc-gen-go: improve generation of comments 2019-08-07 17:33:08 +00:00
imports cmd/protoc-gen-go: improve generation of comments 2019-08-07 17:33:08 +00:00
issue780_oneof_conflict cmd/protoc-gen-go: improve generation of comments 2019-08-07 17:33:08 +00:00
nopackage cmd/protoc-gen-go: improve generation of comments 2019-08-07 17:33:08 +00:00
proto2 cmd/protoc-gen-go: improve generation of comments 2019-08-07 17:33:08 +00:00
proto3 cmd/protoc-gen-go: improve generation of comments 2019-08-07 17:33:08 +00:00
gen_test.go all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
go.mod all: update to github.com/golang/protobuf@b9f5089f 2019-07-18 00:01:40 +00:00
registry_test.go cmd/protoc-gen-go/testdata: add registry test 2019-07-08 20:23:18 +00:00