Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
guanshoukui committed Mar 7, 2024
1 parent 7fd1530 commit 1ec9cc0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/struct_pb/protoc-plugin/FileGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ IGUANA_INLINE void from_json_impl(Eigen::Quaternion<_Scalar>& value, It&& it, It
iguana::from_json(*(_Scalar(*)[4]) & value, it, end);
}
})");
}// namespace eigen)");

}

Expand All @@ -99,8 +99,8 @@ void FileGenerator::generate_enum_helper(google::protobuf::io2::Printer *p) {
for(int i = 0; i < msg->value_count();++i) {
format("$1$, ", msg->value(i)->number());
}
format("};\n};\n");
format.outdent();
format("};\n};\n");
}

NamespaceOpener(p, "iguana").close();
Expand Down
2 changes: 1 addition & 1 deletion src/struct_pb/protoc-plugin/MessageGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void MessageGenerator::generate_struct_definition(
for (int i = 0; i < d_->field_count(); ++i) {
auto fd = d_->field(i);
if (fd->options().GetExtension(inherits_from)) {
parent = std::string(": public ") + fg_map_.get(fd).cpp_type_name();
parent += (i == 0 ? ":" : ",") + std::string(" public ") + fg_map_.get(fd).cpp_type_name();
}
}

Expand Down
1 change: 0 additions & 1 deletion src/struct_pb/protoc-plugin/example/base.proto
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,3 @@ message PointENU {
double y = 2 ;
double z = 3 ;
}

0 comments on commit 1ec9cc0

Please sign in to comment.