-
Notifications
You must be signed in to change notification settings - Fork 41
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 #1238 from GMLC-TDC/develop
HELICS 2.5.0 merge from Develop
- Loading branch information
Showing
542 changed files
with
18,272 additions
and
10,984 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,2 +1,5 @@ | ||
src:*/libzmq/* | ||
src:*/badInputTests.cpp | ||
src:*/*/badInputTests* | ||
fun:*getMessageObj* | ||
[undefined] | ||
fun:*helicsFederateRegister* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
|
||
scl enable rh-git29 devtoolset-8 "${INPUT_SCRIPT}" | ||
/hbb/activate-exec "${INPUT_SCRIPT}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
FILES_URL="$(jq -r '.pull_request._links.self.href' "$GITHUB_EVENT_PATH")/files" | ||
FILES=$(curl -s -X GET -G "$FILES_URL" | jq -r '.[] | .filename') | ||
echo "====Files Changed in PR====" | ||
echo "$FILES" | ||
filecount=$(echo "$FILES" | grep -c -E '\.(cpp|hpp|c|h)$' || true) | ||
echo "Total changed: $filecount" | ||
tidyerr=0 | ||
if (( filecount > 0 && filecount <= 20 )); then | ||
echo "====Configure CMake====" | ||
mkdir build && cd build || exit | ||
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DHELICS_BUILD_BENCHMARKS=ON -DHELICS_BUILD_EXAMPLES=ON -DHELICS_BUILD_TESTS=ON .. | ||
cd .. | ||
echo "====Run clang-tidy====" | ||
while read -r line ; do | ||
if echo "$line" | grep -E '\.(cpp|hpp|c|h)$'; then | ||
python3 /usr/share/clang/run-clang-tidy.py "$line" -p build -quiet | ||
rc=$? | ||
echo "clang-tidy exit code: $rc" | ||
if [[ "$rc" != "0" ]]; then | ||
tidyerr=1 | ||
fi | ||
fi | ||
done <<< "$FILES" | ||
fi | ||
exit $tidyerr | ||
|
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,26 @@ | ||
name: Static Analyzers | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
cpplint: | ||
runs-on: ubuntu-latest | ||
container: helics/buildenv:cpplint | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run cpplint | ||
run: cpplint --counting=detailed --recursive examples benchmarks src tests | ||
|
||
clang-tidy: | ||
if: github.event_name == 'pull_request' | ||
runs-on: ubuntu-latest | ||
container: helics/buildenv:clang-extra-tools | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run clang-tidy on changed files | ||
shell: bash | ||
run: ./.github/workflows/run-clang-tidy-pr.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
set noparent | ||
|
||
# Checks to eventually enable | ||
|
||
filter=-readability/multiline_comment,-readability/multiline_string # Errors due to cpplint not handling multiline comments/strings well | ||
|
||
# Unused checks | ||
filter=-build/c++11 # Reports C++11 headers that aren't allowed for specific Google projects. | ||
filter=-build/include_order # Requires unusual include order that encourages creating not self-contained headers | ||
filter=-readability/nolint # Conflicts with clang-tidy | ||
filter=-runtime/references # Requires fundamental change of API, don't see need for this | ||
filter=-whitespace # Formatting determined by clang-format | ||
filter=-runtime/indentation_namespace #conflicts with clang format | ||
filter=-runtime/explicit #issues caught by clang-tidy | ||
filter=-readability/casting # this is picking up a number of false positives | ||
filter=-build/include_subdir # forces an organization of include files that is specific to google and not usable for helics | ||
filter=-runtime/string # this should be reenabled for HELICS 3.0 since we can use string_view which should be more prevalent in the API and more usable. | ||
filter=-readability/inheritance # A style preference to use virtual in addition to override or final so this is ignored |
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
Submodule concurrency
updated
2 files
+77 −2 | gmlc/concurrency/SearchableObjectHolder.hpp | |
+19 −0 | tests/SearchableObjectHolderTests.cpp |
Submodule fmtlib
updated
44 files
Oops, something went wrong.