Skip to content

Commit

Permalink
testing cl/589875674
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Dec 11, 2023
1 parent 2551c40 commit b74f817
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions clif/python/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ cc_library(
"//clif/python/clif:__pkg__",
],
deps = [
"@com_google_absl//absl/strings:string_view",
"@com_google_protobuf//:protobuf",
"@com_google_protobuf//:protobuf_headers",
],
Expand Down
6 changes: 4 additions & 2 deletions clif/python/proto_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <string>
#include <vector>

#include "absl/strings/string_view.h"

#include "google/protobuf/compiler/importer.h"
#include "google/protobuf/descriptor.h"
#include "proto_util.h"
Expand All @@ -39,8 +41,8 @@ class ProtoFileErrorCollector : public MultiFileErrorCollector {
explicit ProtoFileErrorCollector(std::string* error_str)
: error_str_(error_str) {}

void AddError(const std::string& file, int line, int col,
const std::string& msg) override {
void RecordError(absl::string_view file, int line, int col,
absl::string_view msg) override {
std::ostringstream stream;
stream << "Error parsing " << file;
if (line > 0) {
Expand Down

0 comments on commit b74f817

Please sign in to comment.