2a5c33323b
* Update README.md * Update README.md * Update README.md * Update README.md * Revert "Update README.md" This reverts commit 8ce4949388323dc8d81366972b350476b77a8b99. * Update README.md * Update README.md * Update README.md * Revert "Update README.md" This reverts commit 11c4655890d78728cff3ab31b8578f86ba6cbf0f. * Delete settings.json * Delete CODE_OF_CONDUCT.md * Move `.clang-format` to `cpp/` * Update README.md * update docs * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update sidebars.js
10 lines
416 B
Bash
Executable File
10 lines
416 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if which clang-format >/dev/null; then
|
|
find cpp ios android/src/main/cpp -type f \( -name "*.h" -o -name "*.cpp" -o -name "*.m" -o -name "*.mm" \) -print0 | while read -d $'\0' file; do
|
|
clang-format -style=file:./cpp/.clang-format -i "$file"
|
|
done
|
|
else
|
|
echo "warning: clang-format not installed, download from https://clang.llvm.org/docs/ClangFormat.html (or run brew install clang-format)"
|
|
fi
|