mirror of
https://github.com/google/pebble
synced 2026-10-17 08:44:11 +02:00
Import of the watch repository from Pebble
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# Test comment inclusion from .proto to .pb.h
|
||||
|
||||
Import("env")
|
||||
|
||||
env.NanopbProto("comments")
|
||||
env.Object("comments.pb.c")
|
||||
env.Match(['comments.pb.h', 'comments.expected'])
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
Enum1Comment
|
||||
LeadingEnumComment
|
||||
ENUMVAL2.*TrailingEnumComment
|
||||
Message1Comment
|
||||
member2.*TrailingMemberComment
|
||||
m2member1.*m2comment1
|
||||
m2member50.*m2comment50
|
||||
m2member4.*m2comment4
|
||||
m2oneof10.*m2oneof10_comment
|
||||
m2oneof5.*m2oneof5_comment
|
||||
@@ -0,0 +1,29 @@
|
||||
syntax = "proto2";
|
||||
|
||||
// Message1Comment
|
||||
message Message1
|
||||
{
|
||||
// LeadingMemberComment
|
||||
required int32 member1 = 1;
|
||||
required int32 member2 = 2; // TrailingMemberComment
|
||||
}
|
||||
|
||||
// Enum1Comment
|
||||
enum Enum1
|
||||
{
|
||||
// LeadingEnumComment
|
||||
ENUMVAL1 = 1;
|
||||
ENUMVAL2 = 2; // TrailingEnumComment
|
||||
}
|
||||
|
||||
message Message2
|
||||
{
|
||||
required string m2member1 = 1; // m2comment1
|
||||
required string m2member50 = 50; // m2comment50
|
||||
required string m2member4 = 4; // m2comment4
|
||||
|
||||
oneof m2oneof {
|
||||
int32 m2oneof10 = 10; // m2oneof10_comment
|
||||
int32 m2oneof5 = 5; // m2oneof5_comment
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user