-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #310 from helenarichie/dev-clang-naming
Turn on clang-tidy check for function naming and change function names to pass check
- Loading branch information
Showing
35 changed files
with
872 additions
and
828 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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Description: | ||
# Run clang-tidy on all build types in parallel. Note that this spawns 2x the | ||
# number of build types threads since each type has a thread for the CPU code | ||
# and a thread for the GPU code | ||
|
||
# If ctrl-c is sent trap it and kill all clang-tidy processes | ||
trap "kill -- -$$" EXIT | ||
|
||
# cd into the Cholla directory. Default to ${HOME}/Code/cholla | ||
cholla_path=${1:-${HOME}/Code/cholla} | ||
cd ${cholla_path} | ||
|
||
# Run all clang-tidy build types in parallel | ||
builds=( hydro gravity disk particles cosmology mhd dust) | ||
for build in "${builds[@]}" | ||
do | ||
make tidy TYPE=$build & | ||
done | ||
|
||
# Wait for clang-tidy to finish | ||
wait |
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
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
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
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.