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

Loading…
Cancel
Save