Skip to content

Commit ad677f3

Browse files
Replace ColdChunkSkipper with iterator-based approach.
PiperOrigin-RevId: 537185836
1 parent 46ea61a commit ad677f3

File tree

3 files changed

+295
-288
lines changed

3 files changed

+295
-288
lines changed

src/google/protobuf/compiler/cpp/helpers.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ std::string IntTypeName(const Options& options, absl::string_view type) {
203203

204204
} // namespace
205205

206+
bool IsRarelyPresent(const FieldDescriptor* field, const Options& options) {
207+
return false;
208+
}
209+
206210
bool IsLazy(const FieldDescriptor* field, const Options& options,
207211
MessageSCCAnalyzer* scc_analyzer) {
208212
return IsLazilyVerifiedLazy(field, options) ||

src/google/protobuf/compiler/cpp/helpers.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,9 @@ std::vector<io::Printer::Sub> AnnotatedAccessors(
10581058
// dynamic initialization.
10591059
bool IsFileDescriptorProto(const FileDescriptor* file, const Options& options);
10601060

1061+
// Returns true if `field` is unlikely to be present based on PDProto profile.
1062+
bool IsRarelyPresent(const FieldDescriptor* field, const Options& options);
1063+
10611064
} // namespace cpp
10621065
} // namespace compiler
10631066
} // namespace protobuf

0 commit comments

Comments
 (0)