Skip to content

Commit

Permalink
ci: Move missing include test from c++17 to c++20 (#3377)
Browse files Browse the repository at this point in the history
I'm afraid this was left behind when we migrated to c++20
  • Loading branch information
CarloVarni authored Jul 14, 2024
1 parent ace7934 commit ce9bd84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CI/missing_include_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ITER=0
for file in $(find Core/include/ -name "*.hpp" | grep -v "/detail/"); do
ITER=$((ITER+1))
echo "$(date +%H:%M:%S) $((100*ITER/N_FILES))% check $file"
out=$(printf "#include <${file:13}>\nint main() { return 0; }" | clang++ -std=c++17 -O0 -c -I "Core/include" -I "/usr/include/eigen3" -x c++ - 2>&1)
out=$(printf "#include <${file:13}>\nint main() { return 0; }" | clang++ -std=c++20 -O0 -c -I "Core/include" -I "/usr/include/eigen3" -x c++ - 2>&1)
if [[ "$?" -ne "0" ]]; then
echo "------------------------------------"
echo "$out"
Expand Down
1 change: 1 addition & 0 deletions Core/include/Acts/EventData/GenericParticleHypothesis.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include "Acts/Definitions/ParticleData.hpp"
#include "Acts/Definitions/PdgParticle.hpp"
#include "Acts/EventData/ChargeConcept.hpp"
#include "Acts/Utilities/Concepts.hpp"

#include <cassert>
Expand Down

0 comments on commit ce9bd84

Please sign in to comment.