Clarify comments on GetResolvedSourceFeatures

PiperOrigin-RevId: 574472013
pull/14454/head
Mike Kruskal 1 year ago committed by Copybara-Service
parent 28e573e77f
commit 2b26c00aa1
  1. 6
      src/google/protobuf/compiler/code_generator.h

@ -135,9 +135,9 @@ class PROTOC_EXPORT CodeGenerator {
protected:
// Retrieves the resolved source features for a given descriptor. All the
// features that are imported (from the proto file) and linked in (from the
// callers binary) will be fully resolved. These should be used to make any
// feature-based decisions during code generation.
// global features and language features returned by GetFeatureExtensions will
// be fully resolved. These should be used to make any feature-based decisions
// during code generation.
template <typename DescriptorT>
static const FeatureSet& GetResolvedSourceFeatures(const DescriptorT& desc) {
return ::google::protobuf::internal::InternalFeatureHelper::GetFeatures(desc);

Loading…
Cancel
Save