-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support octal, hex, and arbitrary radix numbers
- Loading branch information
1 parent
289344e
commit 378f19f
Showing
5 changed files
with
384 additions
and
62 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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
git_root=$(git rev-parse --show-toplevel) | ||
|
||
for i in $(git status | grep -E "modified:.*[hc]pp" | sed 's/modified:\s*//'); do | ||
"$git_root"/compiler+runtime/build/llvm-install/usr/local/bin/clang-format -i "$i" | ||
echo "formatted" "$i" | ||
done |
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.