aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-hung Hsieh <chh@google.com>2018-08-03 12:21:47 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-08-03 12:21:47 -0700
commite9ab58d7c0a173e058cfd3e15f1a72a4c0c8be93 (patch)
tree5b409ebd4bd2fec7fd211618f0cf43dad17fc5e8
parent266c9bb486ee64a6e894459ba62128c60b27ce94 (diff)
parenta03b9a5de3902a5b9c4e9c185998ebff1a41cbdf (diff)
downloadplatform_external_protobuf-master-cuttlefish-testing-release.tar.gz
platform_external_protobuf-master-cuttlefish-testing-release.tar.bz2
platform_external_protobuf-master-cuttlefish-testing-release.zip
am: a03b9a5de3 Change-Id: I97df2a0ff28f386b76d8a793753a026de565595b
-rw-r--r--README.android1
-rw-r--r--src/google/protobuf/compiler/cpp/cpp_message.cc2
2 files changed, 2 insertions, 1 deletions
diff --git a/README.android b/README.android
index f1e97d9d3..0f7d5e1b3 100644
--- a/README.android
+++ b/README.android
@@ -9,6 +9,7 @@ Local Modifications:
- Initial changes include support for the micro protobuf compiler and the
assoicated runtime.
- https://github.com/google/protobuf/pull/2732: const FieldDescriptorCompare
+ - Add NOLINT to "return *default_instance_;" in cpp_message.cc.
Protocol Buffers are a way of encoding structured data in an efficient
yet extensible format. Google uses Protocol Buffers for almost all
diff --git a/src/google/protobuf/compiler/cpp/cpp_message.cc b/src/google/protobuf/compiler/cpp/cpp_message.cc
index 14a9a99f4..130e5b2e8 100644
--- a/src/google/protobuf/compiler/cpp/cpp_message.cc
+++ b/src/google/protobuf/compiler/cpp/cpp_message.cc
@@ -2313,7 +2313,7 @@ GenerateStructors(io::Printer* printer) {
GlobalAddDescriptorsName(descriptor_->file()->name()));
printer->Print(
- " return *default_instance_;\n"
+ " return *default_instance_; /* NOLINT */\n"
"}\n"
"\n"
"$classname$* $classname$::default_instance_ = NULL;\n"