mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
Ran clang-format-all.sh. Removed default --style=file parameter (#6639)
* Ran clang-format-all.sh. Removed default --style=file parameter * Moved scripts to scripts/ location
This commit is contained in:
6
scripts/clang-format-all.sh
Normal file
6
scripts/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 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
scripts/clang-format-git.sh
Normal file
6
scripts/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 -f
|
||||
done
|
||||
git checkout include/flatbuffers/reflection_generated.h
|
||||
Reference in New Issue
Block a user