File: clang-format-git.sh

package info (click to toggle)
flatbuffers 23.5.26%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,072 kB
  • sloc: cpp: 48,239; python: 6,852; cs: 5,545; java: 4,365; ansic: 2,498; php: 1,460; javascript: 1,040; xml: 1,016; sh: 884; makefile: 37
file content (6 lines) | stat: -rwxr-xr-x 280 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
# Running it twice corrects some bugs in clang-format.
for run in {1..2}
do
  git clang-format HEAD^ -- include/flatbuffers/* src/*.cpp tests/*.cpp samples/*.cpp grpc/src/compiler/schema_interface.h grpc/tests/*.cpp -f
done
git checkout include/flatbuffers/reflection_generated.h