-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test code formation with clang-format-11.
- Loading branch information
1 parent
d3a9ba7
commit 3ac491d
Showing
2 changed files
with
51 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -o pipefail | ||
|
||
cd $CI_PROJECT_DIR | ||
|
||
# check code style with clang format | ||
find src example include test -iname "*.def" \ | ||
-o -iname "*.h" -o -iname "*.cpp" -o -iname "*.hpp" \ | ||
| xargs clang-format-11 --dry-run --Werror |