summaryrefslogtreecommitdiff
path: root/scripts/clang-format-git.sh
blob: b962d616163a7cdc31510488949fd7ae0d589086 (plain)
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