Skip to content

Commit 0382c22

Browse files
committed
fix generator in clang-tidy-tools build
1 parent 51d71b8 commit 0382c22

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

external/googleapis/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ external_googleapis_add_library("google/rpc/status.proto"
333333

334334
external_googleapis_add_library(
335335
"google/longrunning/operations.proto" api_annotations_protos
336-
api_client_protos rpc_status_protos)
336+
api_client_protos rpc_status_protos api_field_behavior_protos)
337337

338338
external_googleapis_add_library(
339339
"google/iam/v1/iam_policy.proto"

generator/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ target_link_libraries(
154154
nlohmann_json::nlohmann_json
155155
google-cloud-cpp::api_client_protos
156156
google-cloud-cpp::api_field_info_protos
157+
google-cloud-cpp::api_field_behavior_protos
157158
google-cloud-cpp::api_routing_protos
158159
google-cloud-cpp::cloud_extended_operations_protos
159160
google-cloud-cpp::longrunning_operations_protos

generator/internal/http_option_utils.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ absl::optional<QueryParameterInfo> DetermineQueryParameterInfo(
220220
field.containing_type()->full_name() ==
221221
"google.longrunning.ListOperationsRequest") {
222222
return param_info;
223-
} else if (field.cpp_type() != protobuf::FieldDescriptor::CPPTYPE_MESSAGE) {
223+
}
224+
if (field.cpp_type() != protobuf::FieldDescriptor::CPPTYPE_MESSAGE) {
224225
param_info = QueryParameterInfo{
225226
field.cpp_type(), absl::StrCat("request.", field.name(), "()"),
226227
false};

0 commit comments

Comments
 (0)