Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tools/reformat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ bazel mod tidy
# Go
$gofumpt -w -extra "$(pwd)"

# Protobuf
find . -name '*.proto' -exec "$clang_format" -i {} +
# C++ and Protobuf
# C++ sources use .cc; headers use .h.
find . \( -name '*.proto' -o -name '*.cc' -o -name '*.h' \) -exec "$clang_format" -i {} +

# Generated .pb.go files
find bazel-bin/ -path "*${go_module_name}*" -name '*.pb.go' -delete || true
Expand Down
Loading