diff options
author | Yi Jin <jinyithu@google.com> | 2017-10-09 11:21:40 -0700 |
---|---|---|
committer | Yi Jin <jinyithu@google.com> | 2017-10-11 11:04:39 -0700 |
commit | 0473f88b9f4edcef441f1a4af278146d680b076b (patch) | |
tree | d00d45b37aae3a5213ec6057ef37ead0e12efa00 /tools/streaming_proto/Errors.h | |
parent | f1dd657edf87946d98f7f9f95f464e4082306163 (diff) |
Create protoc-gen-cppstream tool to auto-generate cpp proto field Ids.
It is very similiar to protoc-gen-javastream, which generates field Ids used
by ProtoOutputStream.cpp to dump protobuf data.
Bug: 65641021
Test: compile the streaming_proto:
$ mmm -j frameworks/base/tools/streaming_proto/
and run:
$ PATH=$PATH:out/host/linux-x86/bin/protoc-gen-cppstream aprotoc
--cppstream_out=tmp/
frameworks/base/core/proto/android/service/procstats.proto
frameworks/base/core/proto/android/util/common.proto
Change-Id: I68becc80b5166455455c5df28cd698601b4a1c1d
Diffstat (limited to 'tools/streaming_proto/Errors.h')
-rw-r--r-- | tools/streaming_proto/Errors.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/streaming_proto/Errors.h b/tools/streaming_proto/Errors.h index 109195a20b06..f14bbfd55b5f 100644 --- a/tools/streaming_proto/Errors.h +++ b/tools/streaming_proto/Errors.h @@ -4,7 +4,7 @@ #include <vector> namespace android { -namespace javastream_proto { +namespace stream_proto { using namespace std; @@ -44,5 +44,5 @@ extern const string UNKNOWN_FILE; extern const int UNKNOWN_LINE; -} // namespace javastream_proto +} // namespace stream_proto } // namespace android |