protoc-gen-c/compat.h: Add `compat::StringView` type
protobuf >= 30.x replaces `const std::string&` in various APIs with its own string view type that may actually be a `absl::string_view`. Introduce our own `compat::StringView` type that we can use instead of `const std::string&` in order to support compiling across multiple protobuf versions.
Showing
Please register or sign in to comment