mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-10 07:06:26 +00:00
Improved pull request & clang-format instructions.
Change-Id: Ia439bcc61bac5788792244d10e573b1fba54b347
This commit is contained in:
6
src/clang-format-all.sh
Normal file
6
src/clang-format-all.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
# Running it twice corrects some bugs in clang-format.
|
||||
for run in {1..2}
|
||||
do
|
||||
clang-format -i -style=file include/flatbuffers/* src/*.cpp tests/*.cpp samples/*.cpp grpc/src/compiler/schema_interface.h grpc/tests/*.cpp
|
||||
done
|
||||
git checkout include/flatbuffers/reflection_generated.h
|
||||
6
src/clang-format-git.sh
Normal file
6
src/clang-format-git.sh
Normal file
@@ -0,0 +1,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
|
||||
done
|
||||
git checkout include/flatbuffers/reflection_generated.h
|
||||
@@ -1,2 +0,0 @@
|
||||
clang-format -i -style=file include/flatbuffers/* src/*.cpp tests/test.cpp samples/*.cpp grpc/src/compiler/schema_interface.h grpc/tests/*.cpp
|
||||
git checkout include/flatbuffers/reflection_generated.h
|
||||
Reference in New Issue
Block a user