Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
6af928a
add in simple exciter code
phlptp Apr 12, 2026
9abded0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 12, 2026
1c73336
update for clang tidy
phlptp Apr 12, 2026
de23a6e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 12, 2026
6576514
update static analyzer job to to include libsuitesparse-dev
phlptp Apr 12, 2026
b3ad008
Merge branch 'simple_exciter_code' of https://github.com/LLNL/GridDyn…
phlptp Apr 12, 2026
ca83037
try to fix the clang-tidy builds
phlptp Apr 12, 2026
eb2c4bf
update the clang tidy run script
phlptp Apr 12, 2026
3c10079
update .clang-tidy file
phlptp Apr 12, 2026
7f53f17
more clang tidy fixes
phlptp Apr 12, 2026
f016975
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 12, 2026
3952ea6
update the exciter
phlptp Apr 12, 2026
d0173a5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 12, 2026
bb669ad
update clang tidy
phlptp Apr 12, 2026
e71f90c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 12, 2026
2ffb088
update clang tidy push
phlptp Apr 12, 2026
ecb738c
Merge branch 'simple_exciter_code' of https://github.com/LLNL/GridDyn…
phlptp Apr 12, 2026
83bc18b
clang tidy code update
phlptp Apr 13, 2026
d66104e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 13, 2026
5a724ae
updates for clang-tidy
phlptp Apr 13, 2026
d65e7ee
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 13, 2026
5134640
more clang-tidy fixes
phlptp Apr 13, 2026
af821e6
Merge branch 'simple_exciter_code' of https://github.com/LLNL/GridDyn…
phlptp Apr 13, 2026
111bc48
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Apr 13, 2026
b3fae6f
update concurrency library
phlptp Apr 13, 2026
35b8448
update utilities 3rd party library
phlptp Apr 14, 2026
46fe2a9
Merge branch 'simple_exciter_code' of https://github.com/LLNL/GridDyn…
phlptp Apr 14, 2026
9bb6905
update clang tidy files
phlptp Apr 14, 2026
25a530c
update workflows
phlptp Apr 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ google-*,
modernize*,
-modernize-use-trailing-return-type,
-modernize-use-override,
-modernize-use-ranges,
-modernize-avoid-c-arrays,
-modernize-pass-by-value,
-modernize-use-equals-default,
Expand All @@ -24,11 +25,14 @@ hicpp-*,
clang-analyzer-*,
bugprone-*,
-bugprone-narrowing-conversions,
-bugprone-easily-swappable-parameters,
misc-*,
-misc-non-private-member-variables-in-classes,
-misc-include-cleaner,
cert-*,
-cert-err58-cpp,
portability-*,
-portability-template-virtual-member-function,
readability-*,
-readability-magic-numbers,
performance-*
Expand All @@ -45,6 +49,7 @@ google-*,
modernize*,
-modernize-use-trailing-return-type,
-modernize-use-override,
-modernize-use-ranges,
-modernize-use-using,
-modernize-avoid-c-arrays,
-modernize-pass-by-value,
Expand All @@ -65,6 +70,7 @@ misc-*,
cert-*,
-cert-err58-cpp,
portability-*,
-portability-template-virtual-member-function,
readability-*,
-readability-magic-numbers,
-readability-identifier-naming,
Expand All @@ -74,7 +80,6 @@ performance-*

HeaderFilterRegex: 'src/helics/*.hp?p?'

AnalyzeTemporaryDtors: false
CheckOptions:
- key: cert-dcl59-cpp.HeaderFileExtensions
value: h,hh,hpp,hxx
Expand Down Expand Up @@ -315,7 +320,7 @@ CheckOptions:
- key: readability-identifier-naming.MethodSuffix
value: ''
- key: readability-identifier-naming.NamespaceCase
value: lowercase
value: lower_case
- key: readability-identifier-naming.NamespacePrefix
value: ''
- key: readability-identifier-naming.NamespaceSuffix
Expand Down
21 changes: 19 additions & 2 deletions .github/actions/run-clang-tidy-pr.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
set -euo pipefail

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===="
Expand All @@ -12,10 +14,25 @@ if ((filecount > 0 && filecount <= 20)); then
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DGRIDDYN_BUILD_C_SHARED_LIBRARY=ON ..
cd ..
echo "====Run clang-tidy===="
if [[ -x /usr/bin/run-clang-tidy ]]; then
TIDY_CMD=(/usr/bin/run-clang-tidy)
elif command -v run-clang-tidy >/dev/null 2>&1; then
TIDY_CMD=(run-clang-tidy)
elif command -v clang-tidy >/dev/null 2>&1; then
TIDY_CMD=(clang-tidy)
elif [[ -f /usr/share/clang/run-clang-tidy.py ]]; then
TIDY_CMD=(python3 /usr/share/clang/run-clang-tidy.py)
else
echo "clang-tidy helper not found in PATH and /usr/share/clang/run-clang-tidy.py is unavailable"
exit 2
fi
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=$?
if "${TIDY_CMD[@]}" -p build -quiet "$line"; then
rc=0
else
rc=$?
fi
echo "clang-tidy exit code: $rc"
if [[ "$rc" != "0" ]]; then
tidyerr=1
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/braid-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ name: Braid Build
on:
push:
branches:
- develop
- modernization
- main
pull_request:
branches:
- develop
- modernization
- main
workflow_dispatch:

concurrency:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ name: CI Tests
on:
push:
branches:
- develop
- modernization
- main
pull_request:
branches:
- develop
- modernization
- main
workflow_dispatch:

concurrency:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/compiler-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ name: Compiler Tests
on:
push:
branches:
- develop
- modernization
- main
pull_request:
branches:
- develop
- modernization
- main
workflow_dispatch:

concurrency:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/static-analyzers.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: Static Analyzers

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
cpplint:
Expand Down
2 changes: 1 addition & 1 deletion ThirdParty/concurrency
Submodule concurrency updated 62 files
+0 −66 .circleci/config.yml
+25 −0 .github/actions/quick_cmake/action.yml
+43 −0 .github/workflows/asan.yml
+63 −0 .github/workflows/coverage.yml
+39 −0 .github/workflows/msan.yml
+28 −0 .github/workflows/static-analyzers.yml
+83 −0 .github/workflows/tests.yml
+39 −0 .github/workflows/tsan.yml
+4 −4 .pre-commit-config.yaml
+13 −6 CMakeLists.txt
+1 −1 LICENSE
+23 −26 azure-pipelines.yml
+0 −0 config/asan_blacklist.txt
+0 −0 config/asan_suppression.txt
+1 −1 config/cmake/AddGooglebenchmark.cmake
+1 −1 config/cmake/CheckLatestCXXStandardOption.cmake
+1 −1 config/cmake/compiler_flags.cmake
+1 −1 config/cmake/extraMacros.cmake
+3 −0 config/cppcheck_suppressions.txt
+0 −0 config/leak_suppression.txt
+0 −0 config/msan_blacklist.txt
+0 −0 config/tsan_suppression.txt
+1 −1 gmlc/CMakeLists.txt
+1 −1 gmlc/concurrency/Barrier.hpp
+1 −1 gmlc/concurrency/DelayedDestructor.hpp
+1 −1 gmlc/concurrency/DelayedObjects.hpp
+1 −1 gmlc/concurrency/Latch.hpp
+2 −2 gmlc/concurrency/SearchableObjectHolder.hpp
+15 −11 gmlc/concurrency/TriggerVariable.hpp
+2 −2 gmlc/concurrency/TripWire.hpp
+1 −1 gmlc/empty.cpp
+1 −1 gmlc/libguarded/atomic_guarded.hpp
+3 −3 gmlc/libguarded/cow_guarded.hpp
+13 −13 gmlc/libguarded/deferred_guarded.hpp
+5 −5 gmlc/libguarded/guarded.hpp
+4 −4 gmlc/libguarded/guarded_opt.hpp
+6 −4 gmlc/libguarded/handles.hpp
+6 −4 gmlc/libguarded/lr_guarded.hpp
+7 −5 gmlc/libguarded/ordered_guarded.hpp
+2 −2 gmlc/libguarded/rcu_guarded.hpp
+12 −10 gmlc/libguarded/shared_guarded.hpp
+12 −10 gmlc/libguarded/shared_guarded_opt.hpp
+12 −10 gmlc/libguarded/staged_guarded.hpp
+1 −1 tests/BarrierTests.cpp
+1 −13 tests/CMakeLists.txt
+1 −1 tests/DelayedDestructorTests.cpp
+1 −1 tests/DelayedObjectsTests.cpp
+1 −1 tests/LatchTests.cpp
+1 −1 tests/SearchableObjectHolderTests.cpp
+5 −6 tests/TriggerVariableTests.cpp
+2 −2 tests/TripWireTests.cpp
+1 −1 tests/libguarded/CMakeLists.txt
+1 −1 tests/libguarded/atomic_guardedTests.cpp
+1 −1 tests/libguarded/cow_guardedTests.cpp
+1 −1 tests/libguarded/deferred_guardedTests.cpp
+1 −1 tests/libguarded/guardedTests.cpp
+1 −1 tests/libguarded/guarded_optTests.cpp
+1 −1 tests/libguarded/lr_guardedTests.cpp
+1 −1 tests/libguarded/ordered_guardedTests.cpp
+3 −1 tests/libguarded/rcu_guardedTests.cpp
+1 −1 tests/libguarded/shared_guardedTests.cpp
+1 −1 tests/libguarded/shared_guarded_optTests.cpp
12 changes: 7 additions & 5 deletions config/cmake/FindSuiteSparse.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,13 @@ macro(SuiteSparse_FIND_COMPONENTS)
set(SuiteSparse_${suitesparseCompUC}_FOUND OFF)
else()
set(SuiteSparse_${suitesparseCompUC}_FOUND ON)
set_target_properties(
${SuiteSparseNameSpace}::${suitesparseCompLC}
PROPERTIES INTERFACE_INCLUDE_DIRECTORIES
"${SuiteSparse_${suitesparseCompUC}_INCLUDE_DIR}"
)
if(SuiteSparse_${suitesparseCompUC}_INCLUDE_DIR)
set_target_properties(
${SuiteSparseNameSpace}::${suitesparseCompLC}
PROPERTIES INTERFACE_INCLUDE_DIRECTORIES
"${SuiteSparse_${suitesparseCompUC}_INCLUDE_DIR}"
)
endif()
endif()

# if one or both (include dir or filepath lib), then we provide a new cmake cache variable
Expand Down
16 changes: 10 additions & 6 deletions config/cmake/updateGitSubmodules.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ macro(submod_update_all)
if(ENABLE_SUBMODULE_UPDATE)
message(STATUS "Git Submodule Update")
execute_process(
COMMAND ${GIT_EXECUTABLE} submodule update --init
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND ${GIT_EXECUTABLE} -c safe.directory=${PROJECT_SOURCE_DIR} submodule update
--init
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
RESULT_VARIABLE GIT_RESULT
OUTPUT_VARIABLE GIT_OUTPUT
ERROR_VARIABLE GIT_ERROR
)
if(GIT_RESULT)
message(
WARNING
"Automatic submodule checkout with `git submodule --init` failed with error ${GIT_RESULT} and output ${GIT_OUTPUT}. Checkout the submodules before building."
"Automatic submodule checkout with `git submodule --init` failed with error ${GIT_RESULT} and output ${GIT_OUTPUT}${GIT_ERROR}. Checkout the submodules before building."
)
endif()
else()
Expand All @@ -46,15 +48,17 @@ macro(submod_update target)
if(ENABLE_SUBMODULE_UPDATE)
message(STATUS "Git Submodule Update ${target}")
execute_process(
COMMAND ${GIT_EXECUTABLE} submodule update --init -- ${target}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND ${GIT_EXECUTABLE} -c safe.directory=${PROJECT_SOURCE_DIR} submodule update
--init -- ${target}
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
RESULT_VARIABLE GIT_RESULT
OUTPUT_VARIABLE GIT_OUTPUT
ERROR_VARIABLE GIT_ERROR
)
if(GIT_RESULT)
message(
WARNING
"Automatic submodule checkout with `git submodule --init -- $[target}` failed with error ${GIT_RESULT} and output ${GIT_OUTPUT}. Checkout the submodules before building."
"Automatic submodule checkout with `git submodule --init -- ${target}` failed with error ${GIT_RESULT} and output ${GIT_OUTPUT}${GIT_ERROR}. Checkout the submodules before building."
)
endif()
else()
Expand Down
Loading