• Robert Edmonds's avatar
    protoc-gen-c/compat.h: Add `compat::StringView` type · 1678f1fb
    Robert Edmonds authored
    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.
    1678f1fb
compat.h 1.96 KB