google-cloud-cpp icon indicating copy to clipboard operation
google-cloud-cpp copied to clipboard

Make sure we use `google::protobuf::compiler::cpp::FieldName` where needed when emitting code

Open scotthart opened this issue 1 year ago • 0 comments

In generator/internal/http_option_utils.cc, and maybe some other places, we emit code that uses the field name directly without first running it through google::protobuf::compiler::cpp::FieldName which handles the case where a field name is a C++ keyword or other disallowed token.

scotthart avatar Jul 19 '24 16:07 scotthart