mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
The only public target here is the edition defaults helper macro, which can be used by external runtimes and plugins. None of this code is C++-specific though, and should be organized higher up. Appropriate aliases are also placed at the top level for public targets PiperOrigin-RevId: 625392504
33 lines
836 B
Protocol Buffer
33 lines
836 B
Protocol Buffer
// This is a detached leading comment
|
|
//
|
|
// With a forced unwrapped line.
|
|
|
|
// File detached leading comment
|
|
|
|
// Syntax leading comment
|
|
syntax = "proto2"; // Syntax trailing comment
|
|
|
|
// Package leading comment
|
|
package protobuf_editions_test.proto2; // Package trailing comment
|
|
|
|
// Leading message comment
|
|
message Foo { // Message trailing comment
|
|
// Message inner comment
|
|
|
|
// Field leading comment
|
|
optional int32 field1 = 1; // Field trailing comment
|
|
|
|
optional /* card */ int32 /* type */ field2 /* name */ = 2 /* tag */;
|
|
|
|
// Message inner trailing comment
|
|
} // Message trailing comment
|
|
|
|
// Leading message comment
|
|
enum Bar { // Enum trailing comment
|
|
// Enum inner comment
|
|
|
|
// Enum value leading comment
|
|
BAR_UNKNOWN = 0; // Enum value trailing comment
|
|
|
|
// Enum inner trailing comment
|
|
} // Enum trailing comment
|