-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
format the code base using clang-format
- Loading branch information
1 parent
f1e1e97
commit fd7e812
Showing
84 changed files
with
13,845 additions
and
13,498 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
find src -iname '*.h' -o -iname '*.cpp' | xargs clang-format -i -style=file | ||
if command -v clang-format &> /dev/null | ||
then | ||
echo "formatting code ..." | ||
find src -iname '*.h' -o -iname '*.cpp' | xargs clang-format -i -style=file | ||
else | ||
echo "clang-format not found, skip formatting code" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.