Repository navigation
Feature/c++23 - #76
Conversation
Catchup with previous fixes.
This should resolve the build failure for updating to C++23. clang-17 didn't support std::expected, but clang-18 should.
WalkthroughThe changes involve updating various project files to transition from the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CMake
participant Compiler
participant CodeBase
User->>CMake: Configure project
CMake->>CodeBase: Set C++ standard to 23
CMake->>CodeBase: Remove tl-expected dependency
CMake->>Compiler: Use Clang 19 for building
Compiler->>CodeBase: Compile using std::expected
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 3
Outside diff range and nitpick comments (5)
include/Apply_move.hpp (1)
Line range hint
31-48: LGTM: Function implementation remains solidThe existing implementation correctly handles both successful and error cases, and the use of
std::invokeandstd::forwardfor perfect forwarding is appropriate. Maintaining error logging is good for debugging purposes.As a minor suggestion for improvement:
Consider using structured binding to make the code slightly more readable:
- if (auto result = std::invoke(t_move, std::forward<ManifoldType>(t_manifold)); - result) + if (auto result = std::invoke(t_move, std::forward<ManifoldType>(t_manifold)); + result.has_value())This change makes the success condition more explicit.
Tools
GitHub Check: build
[failure] 30-30:
no template named 'expected' in namespace 'std'include/Move_command.hpp (1)
Line range hint
1-365: Consider updatingfmt::printtostd::formatWhile not directly related to the C++23 update, consider replacing
fmt::printwithstd::formatandstd::print(C++23) for consistency with the standard library. This would further reduce external dependencies.Example replacement:
// Instead of: fmt::print("Some formatted string {}", value); // Use: std::print("Some formatted string {}", value);Note that
std::printis a C++23 feature, so this change aligns well with the current update.CMakePresets.json (1)
Line range hint
1-465: Inconsistent C++23 Configuration Across PresetsThe verification reveals that only the
ci-stdpreset explicitly setsCMAKE_CXX_STANDARDto23. All other presets either do not set this variable or inherit from presets that also do not specify the C++ standard. This inconsistency can lead to builds defaulting to an older C++ standard, potentially causing compilation issues or unexpected behavior.Action Items:
Update Inheritance:
- Ensure that all presets intended to use C++23 inherit directly or indirectly from
ci-std, which setsCMAKE_CXX_STANDARDto23.Explicitly Set C++ Standard:
- For presets where inheritance does not apply or is not feasible, explicitly set
"CMAKE_CXX_STANDARD": "23"within theircacheVariables.Review Presets Without C++ Standard:
- Analyze presets like
cmake-pedantic,dev-mode,flags-unix,conf-common,conf-windows-common, andconf-unixlike-commonto determine if they should adopt the C++23 standard. If so, update them accordingly.Validate Compiler Support:
- After updating, verify that all compilers used in the presets support C++23 to prevent any compatibility issues.
Category:
Analysis chain
Line range hint
1-465: Verify C++23 support across all presetsWhile the C++ standard has been updated in the "ci-std" preset, it's important to ensure that all the different compiler configurations in this file support C++23. This includes MSVC, GCC, and Clang on both Windows and Unix-like systems.
Please run builds using each preset to confirm C++23 compatibility:
If any preset fails to build with C++23, you may need to add conditional logic to use C++20 for those specific configurations.
Line range hint
1-465: Confirm C++23 standard across all presetsSince the build attempts failed due to the missing
cmakecommand, it's necessary to verify the C++ standard settings directly within theCMakePresets.jsonfile. Please execute the following shell script to check that all presets are configured to use C++23:This script uses
jqto parse theCMakePresets.jsonfile and outputs theCMAKE_CXX_STANDARDvalue for each preset. Ensure that all presets specify"CMAKE_CXX_STANDARD": "23". If any preset does not have this setting or specifies a different standard, consider updating it to maintain consistency.
Line range hint
1-465: Confirm Inheritance of C++23 Standard Across All PresetsThe initial verification shows that only the
ci-stdpreset explicitly setsCMAKE_CXX_STANDARDto 23. To ensure that all presets effectively use C++23 through inheritance, please execute the following shell script. This script will display each preset along with its inheritance chain and the effectiveCMAKE_CXX_STANDARDvalue.This script performs the following actions:
- Checks for
jqInstallation: Ensures thatjqis available for JSON parsing.- Defines a Function
get_cxx_standard: For each preset, it recursively checks ifCMAKE_CXX_STANDARDis set directly or inherited from parent presets.- Iterates Over All Presets: Lists each preset along with its effective
CMAKE_CXX_STANDARDvalue.Expected Output:
Analyzing CMAKE_CXX_STANDARD across all configure presets: cmake-pedantic: Not Set dev-mode: Not Set ci-std: 23 flags-unix: Not Set ci-unix: 23 coverage-unix: 23 ci-coverage: 23 fast-build: 23 build: 23 debug: 23 appveyor: 23 valgrind: 23 asan: 23 cppcheck: 23 lsan: 23 msan: 23 tsan: 23 conf-common: Not Set conf-windows-common: Not Set conf-unixlike-common: Not Set windows-msvc-debug-developer-mode: 23 windows-msvc-release-developer-mode: 23 windows-msvc-debug-user-mode: 23 windows-msvc-release-user-mode: 23 windows-clang-debug: 23 windows-clang-release: 23 unixlike-gcc-debug: 23 unixlike-gcc-release: 23 unixlike-clang-debug: 23 unixlike-clang-release: 23Actions Based on Output:
- Verified Presets: All presets that inherit from
ci-stdcorrectly haveCMAKE_CXX_STANDARDset to 23.- Non-Inheriting Presets: Presets like
cmake-pedantic,dev-mode,flags-unix,conf-common,conf-windows-common, andconf-unixlike-commondo not setCMAKE_CXX_STANDARD. If these presets are intended to participate in builds requiring C++23, consider updating them to inherit fromci-stdor explicitly set the C++ standard.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Test C++23 compatibility across all presets presets=("windows-msvc-debug-developer-mode" "windows-msvc-release-developer-mode" "windows-clang-debug" "windows-clang-release" "unixlike-gcc-debug" "unixlike-gcc-release" "unixlike-clang-debug" "unixlike-clang-release") for preset in "${presets[@]}" do echo "Testing preset: $preset" cmake --preset=$preset && cmake --build build if [ $? -ne 0 ]; then echo "Build failed for preset: $preset" else echo "Build succeeded for preset: $preset" fi echo "-------------------" doneLength of output: 3515
Script:
#!/bin/bash # Verify C++ standard across all presets in CMakePresets.json if ! command -v jq &> /dev/null then echo "jq is required but it's not installed. Please install jq to proceed." exit 1 fi echo "Checking CMAKE_CXX_STANDARD for each configure preset:" jq -r '.configurePresets[] | "\(.name): \(.cacheVariables.CMAKE_CXX_STANDARD // "Not Set")"' CMakePresets.jsonLength of output: 967
Script:
#!/bin/bash # Verify inheritance of C++23 standard across all presets in CMakePresets.json if ! command -v jq &> /dev/null then echo "jq is required but it's not installed. Please install jq to proceed." exit 1 fi echo "Analyzing CMAKE_CXX_STANDARD across all configure presets:" # Function to get CMAKE_CXX_STANDARD for a preset, considering inheritance get_cxx_standard() { local preset=$1 local standard=$(jq -r --arg preset "$preset" ' def find_preset($name): .configurePresets[] | select(.name == $name); def get_standard($preset): if $preset.cacheVariables.CMAKE_CXX_STANDARD then $preset.cacheVariables.CMAKE_CXX_STANDARD elif ($preset.inherits | type == "array") then ($preset.inherits[] | find_preset(.)) | get_standard(.) elif ($preset.inherits | type == "string") then find_preset($preset.inherits) | get_standard(.) else "Not Set" end; find_preset($preset) | get_standard(.) ' CMakePresets.json) echo "$preset: $standard" } # Iterate over all configure presets jq -r '.configurePresets[] | .name' CMakePresets.json | while read -r preset; do get_cxx_standard "$preset" doneLength of output: 26533
include/Ergodic_moves_3.hpp (2)
836-836: LGTM! Successful transition to std::expected completed.The change from
tl::unexpectedtostd::unexpectedin thedo_44_movefunction is correct. This completes the transition fromtl::expectedtostd::expectedthroughout the file.Consider adding a comment at the top of the file mentioning the requirement for C++23 support, to make it clear for future maintainers. For example:
// This file requires C++23 support for std::expected
Line range hint
1-836: Overall LGTM! Successful transition to std::expected with some considerations.The changes in this file successfully transition from
tl::expectedtostd::expected, which is a positive move towards using standard library features. Here are some key points and recommendations:
- All occurrences of
tl::expectedandtl::unexpectedhave been correctly replaced with theirstd::counterparts.- The changes are consistent throughout the file.
- There might be compatibility issues with tools or environments that don't fully support C++23 yet.
Recommendations:
- Update the project's documentation to clearly state the C++23 requirement.
- Verify that all build environments and CI/CD pipelines are using C++23 compatible compilers.
- Check and update any dependent code that might be affected by this change.
- Consider adding a comment at the top of the file indicating the C++23 requirement.
To ensure smooth integration and prevent future issues, consider creating a small test suite that specifically checks for C++23 features used in the project. This can be run as part of your CI/CD pipeline to catch any compatibility issues early.
Tools
GitHub Check: build
[failure] 25-25:
no template named 'expected' in namespace 'std'
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (8)
- .github/workflows/linux-clang.yml (1 hunks)
- CMakeLists.txt (0 hunks)
- CMakePresets.json (1 hunks)
- cmake/StandardProjectSettings.cmake (1 hunks)
- include/Apply_move.hpp (1 hunks)
- include/Ergodic_moves_3.hpp (11 hunks)
- include/Move_command.hpp (1 hunks)
- vcpkg.json (0 hunks)
Files not reviewed due to no reviewable changes (2)
- CMakeLists.txt
- vcpkg.json
Additional context used
GitHub Check: build
include/Apply_move.hpp
[failure] 30-30:
no template named 'expected' in namespace 'std'include/Ergodic_moves_3.hpp
[failure] 25-25:
no template named 'expected' in namespace 'std'
[failure] 103-103:
no member named 'unexpected' in namespace 'std'
[failure] 145-145:
no member named 'unexpected' in namespace 'std'
Additional comments not posted (12)
.github/workflows/linux-clang.yml (2)
Line range hint
1-52: Suggestion: Thoroughly test the entire workflow with the new Clang version.While updating to Clang 18 is the only change in this file, it's important to ensure that all steps in the workflow still function correctly with the new compiler version. This includes the configure, build, and test steps.
Please run the entire workflow locally or in a test environment to verify that:
- All dependencies are still correctly resolved.
- The project builds successfully with the new Clang version.
- All tests pass with the updated compiler.
You can use the following script to simulate the workflow:
If any issues are encountered, additional updates to the workflow or project configuration may be necessary.
33-33: Approved: Clang version update aligns with C++23 goal.The update from Clang 17 to Clang 18 is in line with the PR objective of updating to C++23. This change should provide better support for C++23 features.
To ensure full compatibility, please verify:
Clang 18's C++23 support:
The build and test processes with the new Clang version:
If these checks pass, we can be confident in the compatibility of Clang 18 with the project's C++23 goals.
include/Apply_move.hpp (2)
16-16: LGTM: Inclusion of<expected>headerThe addition of
#include <expected>is correct and necessary for usingstd::expected.
20-28: Great job on updating the documentation!The transition to Doxygen-style comments and the update to mention
std::expected<T,E>improve the clarity and consistency of the documentation. The comments now provide a comprehensive explanation of the function's purpose, parameters, and return type.cmake/StandardProjectSettings.cmake (1)
Line range hint
36-36: Verify Boost compatibility with C++23The minimum Boost version is set to 1.75.0. While this is a relatively recent version, it's worth verifying that it's fully compatible with C++23 features you plan to use in the project.
To check Boost compatibility and version, run the following script:
#!/bin/bash # Description: Check Boost version and compatibility # Test: Look for Boost version specifications in CMake files echo "Checking for Boost version specifications:" rg --type cmake "find_package\(Boost|Boost_FOUND|Boost_VERSION" # Test: Check if there are any Boost-related compatibility issues mentioned in the code echo "Checking for potential Boost compatibility issues:" rg --type cpp "BOOST_VERSION|BOOST_LIB_VERSION"include/Move_command.hpp (1)
18-18: LGTM! Verify consistency across the codebase.The change from
tl::expectedtostd::expectedis a good update, aligning with the C++23 standard. This improves code standardization and reduces external dependencies.To ensure consistency across the codebase, please run the following script:
This script will help identify any places where
tl::expectedmight still be used, confirm the usage ofstd::expected, and check for any remaining includes of thetl-expectedlibrary.Verification successful
Verified!
All instances of
tl::expectedhave been successfully replaced withstd::expected, and there are no remaining dependencies on thetl-expectedlibrary.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check for any remaining usage of tl::expected # Test 1: Search for any remaining tl::expected usage echo "Searching for remaining tl::expected usage:" rg 'tl::expected' --type cpp # Test 2: Verify that std::expected is now being used echo "Verifying std::expected usage:" rg 'std::expected' --type cpp # Test 3: Check if tl-expected is still included anywhere echo "Checking for tl-expected includes:" rg '#include.*tl/expected\.hpp' --type cppLength of output: 735
CMakePresets.json (1)
Line range hint
1-465: Summary of CMakePresets.json reviewThe update to C++23 in the "ci-std" preset is appropriate and aligns with the PR objectives. However, it's crucial to ensure compatibility across all build configurations. The provided verification steps will help identify any potential issues with C++23 support in different environments.
Overall, the change is approved, but careful testing is recommended to maintain build stability across all supported platforms and compiler versions.
include/Ergodic_moves_3.hpp (5)
145-145: LGTM! Consistent with previous changes.The change from
tl::unexpectedtostd::unexpectedis correct and consistent with the changes in thedo_23_movefunction.Please refer to the previous comment about ensuring C++23 support in your build environment.
Tools
GitHub Check: build
[failure] 145-145:
no member named 'unexpected' in namespace 'std'
212-212: LGTM! Consistent changes throughout the function.The changes from
tl::unexpectedtostd::unexpectedare correct and consistent throughout thedo_26_movefunction.Also applies to: 237-237, 258-258, 276-276, 312-312
325-325: LGTM! Consistent with previous changes.The change from
tl::unexpectedtostd::unexpectedin thedo_62_movefunction is correct and consistent with the changes in other functions.
103-103: LGTM! Ensure C++23 support in the build environment.The change from
tl::unexpectedtostd::unexpectedis correct for C++23. However, the static analysis tool is reporting an error, which might be due to the tool not supporting C++23 yet.To ensure C++23 support in your build environment, run the following script:
#!/bin/bash # Description: Check C++ compiler version and C++23 support # Check compiler version g++ --version clang++ --version # Check C++23 support echo "#include <expected>" > test.cpp echo "int main() { std::expected<int, std::string> e{0}; return 0; }" >> test.cpp g++ -std=c++23 -c test.cpp && echo "G++ supports C++23 std::expected" || echo "G++ does not support C++23 std::expected" clang++ -std=c++23 -c test.cpp && echo "Clang++ supports C++23 std::expected" || echo "Clang++ does not support C++23 std::expected" rm test.cppTools
GitHub Check: build
[failure] 103-103:
no member named 'unexpected' in namespace 'std'
17-17: LGTM! Verify usage across the codebase.The change from
tl::expectedtostd::expectedis correct. However, ensure that all usages ofExpectedthroughout the codebase have been updated to accommodate this change.Run the following script to check for any remaining usages of
tl::expected:Also applies to: 25-25
| */ | ||
| template <typename ManifoldType, | ||
| typename ExpectedType = tl::expected<ManifoldType, std::string>, | ||
| typename ExpectedType = std::expected<ManifoldType, std::string>, |
There was a problem hiding this comment.
Tip
Codebase Verification
Missing C++23 Compiler in Build Environment
The build configuration correctly sets CMAKE_CXX_STANDARD to 23, enabling C++23 features like std::expected. However, no C++ compiler (g++ or clang++) was found in the build environment. This absence prevents the project from being compiled with the required C++23 standard, causing the static analysis failure.
Actions to Resolve:
- Install a C++23-Compatible Compiler: Ensure that a C++23-compatible compiler (e.g., GCC 12+, Clang 16+, or MSVC 19.34+) is installed in the build environment.
- Configure the Compiler in CMake: Specify the C++ compiler in the CMake configuration if not using the default compiler. For example, set
CMAKE_CXX_COMPILERto the path of the installed compiler.
Analysis chain
Update to std::expected might require compiler adjustment
The change from tl::expected to std::expected is correct for the transition to C++23. However, the static analysis failure suggests that your current compiler might not support C++23 features yet.
To resolve this:
- Ensure your compiler supports C++23 (e.g., GCC 12+, Clang 16+, or MSVC 19.34+).
- Update your build configuration to use C++23.
Let's verify the current compiler and C++ standard setting:
If the compiler version is insufficient or the C++ standard is not set to 23, please update accordingly.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Check compiler version and C++ standard setting
if command -v g++ &> /dev/null; then
echo "GCC version:"
g++ --version | head -n 1
elif command -v clang++ &> /dev/null; then
echo "Clang version:"
clang++ --version | head -n 1
fi
echo "Checking C++ standard setting in CMakeLists.txt:"
grep -n "set(CMAKE_CXX_STANDARD" CMakeLists.txt
Length of output: 194
Script:
#!/bin/bash
# Search for CMAKE_CXX_STANDARD in all CMakeLists.txt files
echo "Searching for CMAKE_CXX_STANDARD settings in all CMakeLists.txt files:"
rg "set\s*\(\s*CMAKE_CXX_STANDARD" --type cmake
# Search for compiler flags that set the C++ standard
echo "Searching for compiler flags that set the C++ standard (e.g., -std=c++23):"
rg "-std=c\+\+23" --type cmake
Length of output: 924
Script:
#!/bin/bash
# Search for CMAKE_CXX_STANDARD in all CMakeLists.txt files
echo "Searching for CMAKE_CXX_STANDARD settings in all CMakeLists.txt files:"
rg "set\s*\(\s*CMAKE_CXX_STANDARD\s+23\s*\)" --type cmake
# Search for compiler flags that set the C++ standard
echo "Searching for compiler flags that set the C++ standard (e.g., -std=c++23):"
rg "-std=c\+\+23" --type cmake
Length of output: 862
Script:
#!/bin/bash
# Search for CMAKE_CXX_STANDARD in all CMakeLists.txt files
echo "Searching for CMAKE_CXX_STANDARD settings in all CMakeLists.txt files:"
rg "set\s*\(\s*CMAKE_CXX_STANDARD\s+23\s*\)" --type cmake
# Correctly search for compiler flags that set the C++ standard
echo "Searching for compiler flags that set the C++ standard (e.g., -std=c++23):"
rg '-std=c\+\+23' --type cmake
# Additionally, search for CMAKE_CXX_FLAGS that might include the C++23 standard
echo "Searching for CMAKE_CXX_FLAGS that include the C++23 standard:"
rg "CMAKE_CXX_FLAGS.*-std=c\+\+23" --type cmake
Length of output: 1047
Script:
#!/bin/bash
# Search for the C++ compiler set in CMake files
echo "Searching for CMAKE_CXX_COMPILER settings in all CMakeLists.txt files:"
rg "set\s*\(\s*CMAKE_CXX_COMPILER\s+" --type cmake
# If a compiler is found, display its version
echo "Checking the version of the specified C++ compiler:"
COMPILER=$(rg "set\s*\(\s*CMAKE_CXX_COMPILER\s+" --type cmake | awk -F'"' '{print $2}' | head -n 1)
if [ -n "$COMPILER" ]; then
if [ -x "$COMPILER" ]; then
$COMPILER --version | head -n 1
else
echo "Compiler path '$COMPILER' is not executable or does not exist."
fi
else
# If no compiler is explicitly set, check the default compiler
echo "No explicit C++ compiler set in CMake files. Checking default compiler:"
if command -v g++ &> /dev/null; then
echo "GCC version:"
g++ --version | head -n 1
elif command -v clang++ &> /dev/null; then
echo "Clang version:"
clang++ --version | head -n 1
else
echo "No default C++ compiler (g++ or clang++) found in the environment."
fi
fi
# Verify the C++ standard setting in CMake
echo "Verifying CMAKE_CXX_STANDARD is set to 23:"
rg "set\s*\(\s*CMAKE_CXX_STANDARD\s+23\s*\)" --type cmake
Length of output: 989
Tools
GitHub Check: build
[failure] 30-30:
no template named 'expected' in namespace 'std'
|
|
||
| # Use C++20 | ||
| set(CMAKE_CXX_STANDARD 20) | ||
| set(CMAKE_CXX_STANDARD 23) |
There was a problem hiding this comment.
Tip
Codebase Verification
Potential Compatibility Issues with std::expected
The upgrade to C++23 introduces potential compatibility concerns:
- Usage of
std::expectedfound in several headers (include/Move_command.hpp,include/Ergodic_moves_3.hpp,include/Apply_move.hpp) is not part of the C++23 standard. - Ensure that
std::expectedis provided by an external library (e.g., Boost) or a custom implementation compatible with C++23. - Verify that all dependencies and compiler support the required features for
std::expected.
Analysis chain
Upgrade to C++23 standard
The C++ standard has been updated from C++20 to C++23, which aligns with the PR objectives. This change brings access to the latest C++ features and improvements.
However, there are a few considerations:
- Ensure that all compilers and tools used in the project support C++23.
- Some libraries or dependencies might not be compatible with C++23 yet.
- The codebase may need to be reviewed for potential optimizations or refactoring opportunities introduced by C++23.
To verify compiler support and potential issues, run the following script:
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check C++23 support in the project
# Test: Check if CMake is configured to use C++23 in other files
echo "Checking for C++23 configuration in other CMake files:"
rg --type cmake "set\(CMAKE_CXX_STANDARD" -g "!StandardProjectSettings.cmake"
# Test: Look for compiler version checks that might need updating
echo "Checking for compiler version checks:"
rg --type cmake "CMAKE_CXX_COMPILER_VERSION|gcc.*version|clang.*version"
# Test: Check for any explicit C++20 flags that might need updating
echo "Checking for explicit C++20 flags:"
rg --type cmake "std=c\+\+20|-std=c\+\+20"
# Test: Look for potential compatibility issues in the code
echo "Checking for potential C++23 compatibility issues:"
rg --type cpp "std::expected|<expected>|std::generator|<generator>|std::mdspan|<mdspan>"
Length of output: 477
Script:
#!/bin/bash
# Description: Check C++23 support in the project
# Test: Check if CMake is configured to use C++23 in other files
echo "Checking for C++23 configuration in other CMake files:"
rg --type cmake 'set\(CMAKE_CXX_STANDARD\s+23\)' --ignore-file StandardProjectSettings.cmake
# Test: Look for compiler version checks that might need updating
echo "Checking for compiler version checks:"
rg --type cmake 'CMAKE_CXX_COMPILER_VERSION|gcc\s+version|clang\s+version'
# Test: Check for any explicit C++20 flags that might need updating
echo "Checking for explicit C++20 flags:"
rg --type cmake 'std=c\+\+20|-std=c\+\+20'
# Test: Look for potential compatibility issues in the code
echo "Checking for potential C++23 compatibility issues:"
rg --type cpp 'std::expected|<expected>|std::generator|<generator>|std::mdspan|<mdspan>'
Length of output: 1310
Script:
#!/bin/bash
# Description: Investigate sources and usages of specific C++ constructs
# Test: Identify files where 'std::expected' is defined or implemented
echo "Searching for definitions of 'std::expected':"
rg --type cpp 'std::expected' --search-zip
# Test: Identify if 'std::generator' and 'std::mdspan' are used from external libraries
echo "Searching for 'std::generator' and 'std::mdspan' usages from external sources:"
rg --type cpp 'std::generator|std::mdspan' | rg -v 'std::'
# Test: Check for external library dependencies that might provide these features
echo "Searching for Boost or other libraries that provide 'expected', 'generator', or 'mdspan':"
rg --files-with-matches 'Boost' --type cmake
rg --files-with-matches 'find_package\(Boost' --type cmake
Length of output: 1121
| "cacheVariables": { | ||
| "CMAKE_CXX_EXTENSIONS": "OFF", | ||
| "CMAKE_CXX_STANDARD": "20", | ||
| "CMAKE_CXX_STANDARD": "23", |
There was a problem hiding this comment.
Tip
Codebase Verification
CMake is not installed in the CI environment
The CI environment lacks CMake, which is essential for building the project with the updated C++23 standard. This absence is causing all preset builds to fail.
- Action Required: Install CMake in the CI environment to enable successful builds with the
ci-stdpreset and ensure compatibility with C++23.
Analysis chain
Approved: C++ standard updated to C++23
The change from C++20 to C++23 aligns with the PR objective of updating the project to utilize C++23 features. This update in the "ci-std" preset will propagate to all configurations that inherit from it.
To ensure compatibility across different build environments, please verify that all targeted compilers and platforms fully support C++23. You may want to run the following command in your CI pipeline to check compiler support:
If any issues arise, consider adding conditional logic to fall back to C++20 for environments that don't yet fully support C++23.
[/run_scripts]
Scripts executed
The following scripts were executed for the analysis:
Script:
cmake --preset=ci-std && cmake --build build
Length of output: 3515
Script:
#!/bin/bash
# Check if cmake is installed
if command -v cmake >/dev/null 2>&1; then
cmake --version
else
echo "CMake is not installed."
exit 1
fi
Length of output: 84
There was a problem hiding this comment.
Actionable comments posted: 1
Outside diff range and nitpick comments (11)
.github/workflows/whitespace.yml (1)
3-11: LGTM! Consider adding a comment explaining the workflow trigger strategy.The changes to the workflow triggers look good. Limiting the
pushevent tomainanddevelopbranches, and thepull_requestevent to thedevelopbranch, helps focus the workflow execution on the most relevant scenarios.Consider adding a comment above the
onsection to explain the rationale behind this trigger strategy. This can help future maintainers understand why these specific branches were chosen. For example:# Trigger on pushes to main/develop and PRs to develop # This ensures we check whitespace on main updates and during the PR process on: push: branches: - main - develop pull_request: branches: - develop workflow_dispatch:.github/workflows/clang-format-check.yml (1)
Line range hint
23-32: Consider updating action version and using a stable clang-format version.While not directly related to the changes in this PR, consider the following suggestions for future improvements:
The
jidicula/clang-format-actionis currently set to version 4.13.0. It might be worth checking if there's a newer version available for potential bug fixes or improvements.The clang-format version is set to '18', which is quite recent. While using the latest version can provide access to new features, it might also introduce instability. Consider using a stable version (e.g., 15 or 16) unless you specifically need features from version 18.
To check for the latest stable versions, you can run:
#!/bin/bash # Check latest version of jidicula/clang-format-action echo "Latest jidicula/clang-format-action version:" gh release list --repo jidicula/clang-format-action --limit 1 # Check available clang-format versions echo -e "\nAvailable clang-format versions:" apt-cache madison clang-format | head -n 5This will help you make an informed decision about updating these versions in the future.
.github/workflows/cpp-linter.yml (2)
3-11: Improved workflow trigger configurationThe changes to the workflow trigger configuration are well-structured and provide better control over when the C++ linter runs. Here's a breakdown of the improvements:
- Push events are now limited to 'main' and 'develop' branches, which helps reduce unnecessary workflow runs.
- Pull request events are restricted to the 'develop' branch, aligning with a common branching strategy where feature branches are merged into 'develop'.
- The
workflow_dispatchevent is retained, allowing manual triggering when needed.These changes should help optimize CI/CD resources and maintain a clean development workflow.
However, consider the following suggestions:
- You might want to add a comment explaining the branching strategy for future maintainers.
- Consider using
pull_request_targetinstead ofpull_requestif you need to lint pull requests from forks with write access to the repository.Here's a suggested improvement:
on: push: branches: - main - develop pull_request: branches: - develop workflow_dispatch: + + # Branching strategy: + # - Feature branches are merged into 'develop' via pull requests + # - 'develop' is merged into 'main' for releases
Line range hint
29-29: Consider updating the linter versionThe current configuration uses version 19 of the linter. It's worth checking if there's a newer version available that might include bug fixes or new features relevant to C++23.
You can check the latest version on the cpp-linter-action GitHub page.
.github/workflows/cppcheck.yml (1)
3-11: LGTM! Consider adding a comment explaining the branching strategy.The changes to the workflow triggers are well-structured and align with common CI/CD practices. Limiting the
pull_requestevent to thedevelopbranch and including bothmainanddevelopforpushevents suggests a GitFlow-like branching strategy.Consider adding a brief comment explaining the branching strategy and why these specific triggers were chosen. This can help future contributors understand the CI/CD setup more quickly. For example:
on: # Trigger on pushes to main and develop branches push: branches: - main - develop # Trigger on pull requests to develop branch only pull_request: branches: - develop # Allow manual triggering workflow_dispatch: # Brief explanation of the branching strategy # We use a GitFlow-like strategy where: # - Feature branches are merged into 'develop' via pull requests # - 'develop' is periodically merged into 'main' for releases # This CI setup ensures code quality on both branches while avoiding duplicate runs..github/workflows/msan.yml (1)
9-10: LGTM! Consider including themainbranch as well.The addition of branch specification for pull requests is a good practice. It helps in optimizing CI resources by running the Memory Sanitizer checks only for pull requests targeting the
developbranch.Consider also including the
mainbranch in the pull request trigger to ensure that direct pull requests tomain(if allowed in your workflow) are also checked:pull_request: branches: - develop - mainThis ensures comprehensive coverage while still maintaining resource efficiency.
.github/workflows/tsan.yml (1)
9-10: Approved: Good addition to workflow triggersThe addition of the
developbranch to the pull request triggers is a positive change. This ensures that the Thread Sanitizer checks are run on pull requests targeting the develop branch, which can help catch issues earlier in the development process.Consider also adding the
mainbranch to the pull request triggers for consistency with the push triggers:pull_request: branches: - main - developThis would ensure that pull requests to both
mainanddevelopbranches trigger the workflow, mirroring the push event configuration..github/workflows/asan.yml (1)
9-10: LGTM! Consider including 'main' branch for pull requests.The addition of the 'develop' branch to the pull_request trigger is a good practice. It ensures that the Address Sanitizer workflow runs on pull requests targeting the develop branch, which can help catch issues early in the development process.
Consider also including the 'main' branch in the pull_request trigger, unless there's a specific reason to exclude it. This would ensure consistency with the push event configuration and provide the same level of checking for direct pull requests to main:
pull_request: branches: - main - developThis suggestion assumes that pull requests to 'main' are allowed in your workflow. If they're not, the current configuration is correct.
.github/workflows/valgrind.yml (1)
Line range hint
58-73: Consider enhancing Valgrind result handling and error reporting.While the Valgrind setup is comprehensive, there are a few suggestions to improve its effectiveness:
The Valgrind steps are set to
continue-on-error: true. This might hide potential issues. Consider removing this option or implementing a post-processing step to analyze the output and fail the workflow if serious issues are detected.There's no step to upload or process the Valgrind output. Adding such a step could help in tracking memory-related issues over time. You could use GitHub Actions artifacts to store the Valgrind logs, or integrate with a tool that can parse and display the results more effectively.
Example of uploading Valgrind logs as artifacts:
- name: Upload Valgrind logs uses: actions/upload-artifact@v3 with: name: valgrind-logs path: build/**/*valgrind*.log
- Consider adding a step to summarize the Valgrind results, perhaps using a custom script or a third-party action that can parse Valgrind output.
These changes would make the Valgrind checks more robust and the results more accessible, enhancing the overall quality assurance process.
.github/workflows/sonarcloud.yml (1)
Line range hint
1-85: Suggestion: Consider implementing caching for build artifactsWhile the workflow is well-structured and covers essential CI/CD steps, you could potentially improve its efficiency by implementing caching for build artifacts. This can significantly reduce the execution time for subsequent runs, especially when dependencies or the codebase haven't changed.
Consider adding a caching step for:
- vcpkg packages
- CMake build directory
Here's an example of how you could implement caching for the CMake build directory:
- name: Cache CMake build uses: actions/cache@v3 with: path: build key: ${{ runner.os }}-cmake-${{ hashFiles('**/CMakeLists.txt') }} restore-keys: | ${{ runner.os }}-cmake-Add this step before the "Configure" step. This can help speed up your workflow, especially for builds where the CMakeLists.txt file hasn't changed.
.github/workflows/codeql-analysis.yml (1)
20-21: LGTM! Consider adding 'main' branch for consistency.The addition of the
developbranch to thepull_requestevent trigger is a good improvement. It ensures that CodeQL analysis runs on pull requests targeting thedevelopbranch, which aligns with the existing configuration for thepushevent.For consistency with the
pushevent configuration, consider also adding themainbranch to thepull_requesttrigger. This would ensure that pull requests to bothmainanddevelopbranches undergo CodeQL analysis. Here's the suggested change:pull_request: branches: - develop + - mainThis addition would provide comprehensive coverage for your main development branches.
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (13)
- .github/workflows/asan.yml (1 hunks)
- .github/workflows/clang-format-check.yml (1 hunks)
- .github/workflows/codeql-analysis.yml (1 hunks)
- .github/workflows/cpp-linter.yml (1 hunks)
- .github/workflows/cppcheck.yml (1 hunks)
- .github/workflows/linux-clang.yml (1 hunks)
- .github/workflows/linux-gcc.yml (1 hunks)
- .github/workflows/lsan.yml (1 hunks)
- .github/workflows/msan.yml (1 hunks)
- .github/workflows/sonarcloud.yml (1 hunks)
- .github/workflows/tsan.yml (1 hunks)
- .github/workflows/valgrind.yml (1 hunks)
- .github/workflows/whitespace.yml (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/workflows/linux-clang.yml
Additional comments not posted (6)
.github/workflows/cpp-linter.yml (1)
Line range hint
33-35: Review the "Fail fast" step configurationThe "Fail fast" step is currently set to echo a message rather than exiting with an error code. The comment suggests this is not for actual deployment.
Please confirm if this is intentional for the current state of the project. If you're ready for stricter linting enforcement, you might want to uncomment the
exit 1line:- name: Fail fast?! if: steps.linter.outputs.checks-failed > 0 - run: echo "Some files failed the linting checks!" - # for actual deployment - # run: exit 1 + run: | + echo "Some files failed the linting checks!" + exit 1This change would cause the workflow to fail if any linting checks fail, enforcing stricter code quality standards.
.github/workflows/linux-gcc.yml (1)
3-11: Improved workflow trigger configurationThe changes to the
onsection of the workflow are well-structured and align with best practices for CI/CD pipelines. Here's why these changes are beneficial:
Resource Efficiency: By limiting
pushevents tomainanddevelopbranches, you're ensuring that the workflow runs only on the most critical branches, potentially saving CI/CD resources.Pull Request Focus: Restricting
pull_requestevents to thedevelopbranch ensures that all proposed changes are tested before integration into the main development branch.Flexibility: Retaining the
workflow_dispatchevent allows for manual triggering when needed, providing flexibility in your development process.These changes should lead to a more streamlined and efficient CI/CD process.
.github/workflows/lsan.yml (1)
9-10: LGTM! Good improvement to workflow efficiency.This change to limit the Leak Sanitizer workflow to pull requests targeting the
developbranch is a good practice. It helps to:
- Conserve CI resources by not running the workflow on every pull request.
- Focus testing efforts on the main development branch, where changes are most likely to be integrated.
- Potentially speed up the PR process for branches that don't require this level of scrutiny.
.github/workflows/valgrind.yml (2)
9-10: LGTM! Enhanced CI coverage for thedevelopbranch.This change adds the
developbranch to thepull_requestevent trigger, which is a good practice. It ensures that the Valgrind checks are run not only on pushes todevelop, but also when pull requests are opened against it. This can help catch memory-related issues earlier in the development process, before they are merged into thedevelopbranch.
Line range hint
1-73: Overall, this is a well-structured and comprehensive workflow.The Valgrind workflow is well-designed, using modern GitHub Actions features and providing thorough memory checks for the project. The recent addition of the
developbranch to the pull request triggers enhances its coverage.The workflow includes proper setup steps, uses recent tool versions (like GCC 14), and runs Valgrind on multiple executables with comprehensive options. This provides a solid foundation for catching memory-related issues early in the development process.
While the core functionality is sound, implementing the suggested improvements for Valgrind result handling would further enhance the workflow's effectiveness in maintaining code quality and preventing memory-related bugs.
.github/workflows/sonarcloud.yml (1)
9-10: Approved: Enhanced workflow trigger for develop branchThis change improves the CI/CD process by triggering the SonarCloud analysis on pull requests to the
developbranch. This is a good practice as it:
- Aligns with common Git workflows where feature branches are merged into a development branch.
- Helps catch potential issues earlier in the development process.
- Ensures consistency between push and pull request events for the
developbranch.
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - develop | ||
| pull_request: | ||
| branches: | ||
| - develop |
There was a problem hiding this comment.
Tip
Codebase Verification
Adjust Workflow Triggers to 'develop' Branch Only
It has been verified that the main branch does not exist in the repository. Please update the workflow triggers to exclusively include the develop branch:
- Push events should be limited to the
developbranch. - Pull request events should be restricted to the
developbranch.
This alignment ensures that clang-format checks are executed on the correct and existing branch, optimizing your CI/CD processes.
Analysis chain
Workflow trigger optimization looks good, but verify branch strategy.
The changes to the workflow triggers are well-structured and more targeted:
- Push events are now limited to 'main' and 'develop' branches.
- Pull request events are restricted to the 'develop' branch.
This approach is generally beneficial as it:
- Reduces unnecessary workflow runs, potentially saving on CI/CD costs and resources.
- Focuses the clang-format checks on the most critical branches.
To ensure this aligns with your project's branching strategy, please run the following script:
This script will help verify if the 'main' and 'develop' branches are indeed the primary branches used in your repository, and if there are any other frequently used branches that might need to be included in the workflow triggers.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Verify the branching strategy used in the repository
# Check for the existence of main and develop branches
echo "Checking for main and develop branches:"
git branch -r | grep -E 'origin/(main|develop)$'
# Check for recent activity on these branches
echo -e "\nRecent commits on main and develop branches:"
git for-each-ref --sort=-committerdate --format='%(refname:short) %(committerdate:relative)' refs/remotes/origin/main refs/remotes/origin/develop | head -n 5
# Check if there are other frequently used branches
echo -e "\nOther frequently used branches (if any):"
git for-each-ref --sort=-committerdate --format='%(refname:short) %(committerdate:relative)' refs/remotes/origin/* | grep -vE 'origin/(main|develop)$' | head -n 5
Length of output: 795
There was a problem hiding this comment.
Actionable comments posted: 1
Outside diff range and nitpick comments (1)
.travis.yml (1)
Line range hint
1-190: Review entire CI/CD pipeline for C++23 compatibility.While the compiler updates in the
addonssection are a good start for C++23 support, a comprehensive review of the entire CI/CD pipeline is necessary. This includes:
- Updating all job configurations to use the new compiler versions.
- Reviewing and updating build flags or CMake arguments that might be affected by the C++23 transition.
- Ensuring all dependencies and libraries used in the project are compatible with C++23 and the new compiler versions.
- Updating any custom scripts or commands that might rely on specific compiler versions or C++ standards.
Consider creating a separate issue to track these CI/CD pipeline updates to ensure a smooth transition to C++23 across the entire build and test process.
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- .travis.yml (1 hunks)
- CMakeLists.txt (1 hunks)
- include/Apply_move.hpp (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- include/Apply_move.hpp
Additional comments not posted (4)
CMakeLists.txt (3)
76-79: Excellent addition of UTF-8 support for MSVC!The addition of the
/utf-8flag for MSVC is a great improvement. This ensures consistent handling of UTF-8 encoded source files, which is particularly important for cross-platform projects and aligns well with modern C++ practices.
Line range hint
1-1: Summary of CMakeLists.txt changes
- The addition of the
/utf-8flag for MSVC is a positive change that improves Unicode support and cross-platform compatibility.- The removal of the
tl-expectedpackage (mentioned in the AI summary but not visible in the provided code) likely indicates a shift towards usingstd::expectedfrom C++23. This change needs verification and potentially requires updates throughout the codebase.These changes align well with the project's goal of updating to C++23. However, it's important to ensure that all related changes (especially regarding the
tl-expectedtostd::expectedtransition) have been consistently applied across the entire project.
Line range hint
1-1: Confirm the removal oftl-expectedpackageThe AI summary mentions the removal of the
tl-expectedpackage, which is not visible in the provided code segment. This change likely indicates a shift towards usingstd::expectedfrom C++23, which is in line with the project's update to C++23.Please run the following script to confirm the removal of the
tl-expectedpackage and check for any remaining usage:If the
tl-expectedpackage has been completely removed, ensure that all occurrences oftl::expectedhave been replaced withstd::expectedthroughout the codebase.Verification successful
tl-expected Package Removal Verified
The
tl-expectedpackage has been successfully removed from the project. All instances oftl::expectedhave been replaced withstd::expectedin line with the transition to C++23.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the removal of tl-expected package and check for any remaining usage # Test 1: Check if tl-expected is still mentioned in CMakeLists.txt echo "Checking for tl-expected in CMakeLists.txt:" grep -n "tl-expected" CMakeLists.txt # Test 2: Search for any remaining usage of tl::expected in the codebase echo "Searching for remaining usage of tl::expected:" rg "tl::expected" --type cpp # Test 3: Check if std::expected is now being used echo "Checking for usage of std::expected:" rg "std::expected" --type cppLength of output: 763
.travis.yml (1)
22-24: Compiler versions updated to support C++23.The changes to use gcc-14, g++-14, and clang-19 are appropriate for supporting C++23 features. This aligns well with the PR objective to update the project to C++23.
| - gcc-14 | ||
| - g++-14 | ||
| - clang-19 |
There was a problem hiding this comment.
Tip
Codebase Verification
Update remaining compiler version references to ensure consistency.
Old compiler versions (g++-12, clang-15) are still referenced in the compiler section and the before_install section, and some commented-out configurations also mention older versions. These inconsistencies could lead to build failures or unexpected behavior in the CI pipeline. Please update all instances to use gcc-14, g++-14, and clang-19 consistently throughout the .travis.yml file.
compilersection (lines 36-37)before_installsection (lines 157-167)- Commented-out job configurations referencing older compilers
Analysis chain
Verify compatibility with updated compiler versions.
While updating the compiler versions in the addons section is a good start, there are potential issues to address:
- The
compilersection (lines 36-37) still references older versions (g++-12 and clang-15). - The
before_installsection (lines 157-167) also uses older compiler versions. - Some commented-out job configurations reference older compiler versions.
These inconsistencies could lead to build failures or unexpected behavior in the CI pipeline.
Please update these sections to match the new compiler versions. Here's a script to help identify other occurrences of old compiler versions:
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Search for occurrences of old compiler versions
echo "Occurrences of old compiler versions:"
rg '(gcc|g\+\+|clang(\+\+)?)-([0-9]+)' .travis.yml
Length of output: 560
There was a problem hiding this comment.
Actionable comments posted: 1
Outside diff range and nitpick comments (1)
.travis.yml (1)
Line range hint
47-138: Consider updating commented-out job configurations.While the active parts of the configuration have been updated, there are several commented-out job configurations that still reference older compiler versions (e.g., g++12, clang-15). To maintain consistency and avoid future confusion, consider updating these sections to use the latest compiler versions (g++-14, clang-19) as well.
This will ensure that if these configurations are uncommented in the future, they will work with the updated compiler versions.
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- .travis.yml (3 hunks)
Additional comments not posted (4)
.travis.yml (4)
11-14: LGTM: Optimized CI pipeline configuration.The addition of the
branchessection to prevent double builds for branch pull requests is a good practice. This will help reduce unnecessary CI runs and save resources.
36-36: LGTM: Added wget package.The addition of the
wgetpackage is appropriate. It's likely needed for the updated Clang installation process we'll see later in the file.
Line range hint
1-190: Overall improvements to CI configuration, with some suggestions for further refinement.The changes to this
.travis.ymlfile generally improve the CI configuration and align with the PR objective to update to C++23. Key improvements include:
- Addition of branch configuration to prevent double builds.
- Update to Clang 19 and improved Clang installation process.
- Addition of version checks for Clang.
To further refine the configuration, consider:
- Updating g++ to a more recent version (e.g., g++-13 or g++-14) for consistent C++23 support.
- Adding a checksum verification step when downloading the LLVM script.
- Updating the commented-out job configurations to use the latest compiler versions.
- Reviewing and updating any remaining references to older compiler versions throughout the file.
These changes will ensure a more consistent and secure CI configuration that fully aligns with the C++23 update objective.
To find any remaining references to older compiler versions, run:
#!/bin/bash echo "References to compiler versions:" rg '(gcc|g\+\+|clang(\+\+)?)-\d+' .travis.yml
149-156: Improved Clang installation process, but consider security.The updated Clang installation process is more robust and ensures the correct version (19) is installed. The addition of version checks is a good practice. However, there's a potential security concern:
- The script is downloaded and executed without verification. Consider adding a checksum verification step or using a more secure method to obtain the script.
To ensure the script is being downloaded from the official LLVM repository, run:
#!/bin/bash echo "LLVM script download URL:" rg 'wget.*llvm\.sh' .travis.yml
| compiler: | ||
| - g++-12 | ||
| - clang-15 | ||
| - clang-19 |
There was a problem hiding this comment.
Tip
Codebase Verification
Clang version updated, but g++ version requires updating.
The update to clang-19 aligns with the PR objective to support C++23. However, the analysis confirms that g++-12 is still being used. To ensure consistent C++23 support across both compilers, consider updating g++ to a more recent version (e.g., g++-13 or g++-14).
Analysis chain
Clang version updated, but g++ version might need attention.
The update to clang-19 is good and aligns with the PR objective to support C++23. However, I notice that g++-12 is still being used. Consider updating g++ to a more recent version (e.g., g++-13 or g++-14) to ensure consistent C++23 support across both compilers.
To check the g++ version references, run:
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
echo "g++ version references:"
rg 'g\+\+-\d+' .travis.yml
Length of output: 613
|
* (ci) Update vcpkg, fix documentation
Minor documentation fixes, update vcpkgGitCommitId: 6b6a35335c9064fac2ec6684c4f79808dce59b7d
* (feature) Print out edges
Will be used to print the pivot edge of upcoming (4,4) bistellar move.
Also update the license.
* (fix) Failing test and clang-format
Also update vcpkgGitCommitId: 83dd8264fbf928a06ae587f4112442bc47e1f6e3 and continue fleshing out bistellar_flip.
* (feature) More work on bistellar_flip
Replace foliated_triangulations::vertices_from_cell, which only works on one cell, with manifolds::get_vertices_from_cells, which works on a container of cells. Move it to the foliated_triangulations namespace.
* (style) clang-format 14
Nothing major, unless it trips up clang-format on GitHub Actions.
Also update to vcpkgGitCommitId: 9ff4659a075d5f4f30aaca9f7c4e7f059ecc1d6d
* (fix) Update GHA to clang-format 14
For whatever reason, the same .clang-format produces different results on clang-format-13 vs clang-format-14. So, update to use clang-format-14 on GitHub Actions.
* (feature) bistellar_flip_really
The bistellar_flip_really function completes the (4,4) move. Of course, it has bugs that need to be fixed, namely that it apparently leaves the Triangulation Data Structure in an invalid state, thus failing all of the checks against is_valid() which eventually leads to a std::terminate.
So, this will need to be fixed.
Also, update vcpkgGitCommitId: 89295c9fe22e97ca9e380a6c771ccf2ff09dca95, which incorporates the fixed version of date in vcpkg which fixes the use-of-uninitialized-value result from MSAN.
* (docs) Document bistellar flip
Update vcpkgGitCommitId: 5d66a98f64188bbd806b8e62e66c097d90eb3224
* (refactor) bistellar_flip and bistellar_flip_really
Update vcpkgGitCommitId: c37cc7836a0e1cfd55747be8ec472eafa8055276
* (fix) Failing tests
While debugging bistellar_flip, make sure do_44_move returns the manifold.
Fix input parameter on do_44_move to be a const reference to the manifold.
Update to Boost 1.79 and qt6.3 via vcpkgGitCommitId: ecd55433fd37129109f663548f3b11204e35e630
Also proposed a pull request https://github.com/harupy/find-trailing-whitespace/pull/18 to only check whitespace on changed files.
* (test) Add simple test of bistellar flip
Also update README.md.
* (fix) Filter out boundary edges in find_44_move
Working through the minimal example in bistellar.cpp revealed that any edge was selected due to infinite incident cells being counted.
So, add a check to not count infinite cells.
* (feature) Complete bistellar flip example
The source file bistellar.cpp now contains a working minimal example of a bistellar flip. Also added a CTest to check for a successful run.
* (docs) Update and fix documentation [skip ci]
Fix documentation links and update the bistellar flip example.
* (feature) Add helper functions to Foliated_triangulation for bistellar
Add find_vertex and find_cell helper functions to FoliatedTriangulation. These are wrappers for CGAL::Triangulation_3::is_vertex and ::is_cell, which are boolean functions with out parameters.
The plan is to recast these as free functions taking an Delaunay triangulation parameter, so that they can be used in the bistellar.cpp example. That way, if they are accepted into Triangulation_3 then bistellar_flip_really becomes easy to write in terms of internal Triangulation_3 functions.
Also update GitHub Actions to vcpkgGitCommitId: a106de33bbee694e3be6243718aa2a549a692832.
Change README to reflect that vcpkg manifest mode is now the default, so vcpkg install --feature-flags=manifests is no longer necessary.
* (refactor) Move Foliated_triangulation member functions into free fcns
Yes, unified call syntax here would be nice.
All tests pass. Note that hilarity (i.e. bugs) ensues if foliated_triangulations::collect_edges takes a Delaunay triangulation by value instead of constant reference.
Update to vcpkgGitCommitId: 47cbed88514c0e48fdb72ddc29545f35136f5461
* (feature) Replace Catch2 with doctest
Catch2 has a number of issues with ASAN, compile times, etc.
doctest is much faster and simpler.
There are a couple of tests that need to be rewritten, and have been commented out.
* (test) Fix all tests to run on doctest
Update vcpkgGitCommitId: 2e781b513f486618909d9f78185c0c7ebb54624c
* (fix) Various issues from ASAN
Mostly to try to see if we can get less output from ASAN.
* (test) Use C++20 Mathematical constants
Update vcpkgGitCommitId: 840f701d83d5019aa5033c9d9d08a4cc0d0ebdce
which should fix spdlog.
* (test) Fix SonarLint warning
Also take advantage of std::numbers in C++20.
* (refactor) Start migrating features for bistellar move
Should rename functions to be consistent.
* (refactor) Ergodic_moves_3 operate on Manifold_3, helpers on Delaunay_3
Geometry3 -> Geometry_3
FoliatedTriangulation3 -> Foliated_Triangulation_3
etc.
New function incident_cells_from_edge to encapsulate all the logic behind finding locations for bistellar flips based on the number of incident cells (ie. == 4).
Updated to vcpkgGitCommitId: c379c64ff9ec1b8c6100ebff8e81ecdcb49b330c
* (refactor) Simplify bistellar_flip_really
Only need a reference to the triangulation, the edge to be flipped, and the top and bottom vertices.
Update vcpkgGitCommitId: 1323f4b83d6a91e415e9ce06a45c9d0a6473aaf2
The function still needs to be debugged, of course.
* (test) Update doctest and remove Catch2 references
Turn on doctest fast assertions.
Fix references to Catch in documentation and CI.
Use doctest test suites.
Update CI to use vcpkgGitCommitId: 9e8da9bd8aa16fb268ac68f731c44fdef5fec1ab
* (fix) Fix bug identified by PVS Studio
PVS Studio identified possible use of an uninitialized value obtained by a function returning a std::optional<T>.
* (fix) clang-tidy warnings
# ----------------------------------------------------------
# Header - (type): Brief description
# ----------------------------------------------------------
# * feature A new feature
# * fix A bug fix
# * docs Changes to documentation only
# * style Style/format changes (whitespace, etc.)
# * refactor Changes not related to a bug or feature
# * performance Changes that affects performance
# * test Changes that add/modify/correct tests
# * build Changes to build system (configs, etc.)
# * ci Changes to CI pipeline/workflow
# ----------------------------------------------------------
# ----------------------------------------------------------
# Body - More detailed description, if necessary
# ----------------------------------------------------------
# * Motivation behind changes, more detail into how
# functionality might be affected, etc.
# ----------------------------------------------------------
# ----------------------------------------------------------
# Footer - Associated issues, PRs, etc.
# ----------------------------------------------------------
# * Ex: Resolves Issue #207, see PR #15, etc.
# ----------------------------------------------------------
* (fix) fmt::format strings, update to latest vcpkg
fmt::print doesn't like CGAL point << output anymore, so wrap it with a point_to_str that converts it.
Fix Metropolis to use SystemError.what() which is a const string for reporting via spdlog::trace which uses fmt which requires const string arguments.
Similar conversions using Gmpzf.to_double to make spdlg::debug happy.
Update vcpkgGitCommitId: 23cc58477e200bb54c293ad76f3ce438dbabc86c
* (fix) Don't const-qualify functions that return by value
Nice catch via sonarcloud. Also remove unused includes.
* (fix) More formatting and some logic fixes
Found a few more places to fix fmt.
Simplified try_32_move.
Removed diagnostic code that was throwing exceptions. That info gets printed out before the runs already.
Updated vcpkgGitCommitId: 5fb8f6c24ec13a36db460a555b24b20be03bd73c
* (fix) Clang-tidy fixes
Except the usual transparent functors 'less<>' issue which is unfixable given docopt.cpp's current implementation.
* (fix) clang-format
Consistent formatting
* (ci) Update to Boost 1.80
Via vcpkgGitCommitId: 316323019266ff54be39e0cb2c2de9caaa94cf75
* (ci) Update vcpkg
vcpkgGitCommitId: 01b29f6d8212bc845da64773b18665d682f5ab66
* (ci)
Update packages: vcpkgGitCommitId: 2f0a16b5ae24fec6c615924e2fbc8bc43ab73764
* (build) Update Slurm script for HPC runs
Also update packages to vcpkgGitCommitId: 929fc61671bb5e5e7322981dce1153abf24f54cf
And re-enable Windows builds on GHA.
* (refactor) Run include-what-you-use
Update GitHub Actions with vcpkgGitCommitId: 57ae838ee87313a3f0c5e14b008767d97d94debe
Start slow with iwyu to ensure it's correct on all platforms.
* (fix, ci) Yep, iwyu makes some bad suggestions
Update Travis-CI build environment to Jammy with gcc-11 and clang-14.
* (fix) Fix clang-format and iwyu errors
GHA should all pass now
* (ci) Fix CodeCov, update clang on Travis-CI
Update GitHub Actions to vcpkgGitCommitId: bdf073a835ebea07e1d039cd9cff4f650014e4ce
* (ci) Fix Travis-CI
Jammy doesn't have clang-15 yet.
vcpkgGitCommitId: ec7216c8e1206580ccec7a33024ef38216efdaf8
* (ci) Fix GitHub Actions, clang-format
vcpkgGitCommitId: 7e7c62d863b1bf599c1d104b76cd8b74475844d4
* (refactor) Fix clang-tidy warnings
And GitHub Action for Windows.
* (refactor) More clang-tidy fixes
Also fix GHA for Windows.
* (refactor) Bi-stellar flip
Import current version of bistellar flip from https://github.com/acgetchell/bistellar-flip
This mostly works except for setting neighboring cells correctly.
Update all tests accordingly.
Remove lots of dead code, including src/bistellar.cpp.
Update GHA to vcpkgGitCommitId: 783e2d8e9983a74fad1b9d7b1d88a020438d32b2
* (ci, fix, bug) Fix Travis-CI, clang-tidy, and a bug
Fix Travis-CI, which seems to require:
vcpkg install --feature-flags=manifests
Fix clang-tidy warnings.
Add back logic to set neighboring cells to new cells created in the bistellar flip.
Fixed a bug in get_incident_cells where it was using tds().is_valid() instead of tds().is_edge(Cell, i, j) to verify (Cell, i, j) is an edge in the triangulation.
Next step: debugging this so the triangulation is valid once the bistellar flip is complete.
* (ci) Trying a fix for Travis-CI
vcpkg integrate install not working on Travis-CI, bug report here:
https://github.com/microsoft/vcpkg/issues/27832
* (ci) Update SonarCloud, GitHub Actions
Use SonarCloud GitHub action to install sonar-scanner and build-wrapper and cache.
Update GitHub Actions to vcpkgGitCommitId: 6d6910d8cb7331b0dc35b38ce663f2aa6a4663f4
Add CMakePresets.json.
Enable Metropolis tests to run by default.
* (doc) Update documentation
Also update GitHub Actions.
* (performance) Fix clang-tidy warnings
Update Readme and vcpkgGitCommitId: 9074f833496ebd1b3e050f62568b9bba014f2d17
* (refactor) Use c++20 features now supported in all 4 compilers
* Use constinit where practical
* Use std::movable<> which is now available in <concepts>
* Update to vcpkgGitCommitId: 56765209ec0e92c58a5fd91aa09c46a16d660026
* Remove LGTM which is going away December 16, 2022
* Update README.md
* (feature) Visualization via Qt5
Initial commit.
* (ci) Fix CI build dependencies
Also run clang-format and add basic error handling to cdt-viewer.
Update to vcpkgGitCommitId: 71f51b100be2b5d32e3907572d99dc2f97088c8d
* (ci) Only build cdt-viewer on macOS
Too many Qt/vcpkg errors to troubleshoot right now.
* (feature) Read file and draw
Remove libgl1-mesa-dev and libglu1-mesa-dev from Linux CI images since we're not building Qt on Linux.
Update to vcpkgGitCommitId: 6adca01a3fadca0cc0b80f03ec57c7c3a0be5c02
* (feature) Reading and writing triangulations from files
Add read_file to generate triangulations from a file.
Also refactor the old write_file function to use the new write_file function.
* (refactor) Make write_file easier to use
Add static class variable so that the topology of the manifold can be queried, which allows the generation of a filename be done with just the members of the Manifold class. This allows the write_file to take the Manifold as an argument and from that generate the filename and save appropriately.
This also fixes a bug in CDT where the initial radius and foliation spacing were always set to 1.0, instead of reading the values from the manifold.
* (refactor, test, docs)
Various refactors to improve functional style.
Added doctests directly to cdt-viewer.
Made a cooler 3D foliated triangulation using cdt-viewer to use in README.md.
Updated GitHub Actions to vcpkgGitCommitId: a0cd246334a33107cdef4f701b0b532a71514b19
* (feature) Add functionality to read file from command line
This should wrap up feature/qt.
Docopt has been added so that cdt-viewer can read files and construct triangulations from them, and then draw with Qt.
Doctest has been carefully balanced with Docopt (they can clobber each other's command line arguments) by disabling Doctest unless in DEBUG mode. There's a dry-run option in Docopt that does nothing, but is useful for integration tests run with CTest.
Also refactored foliated_triangulations::squared_radius so that it should work correctly when templated by dimension.
* (doc) Update documentation prior to merge [skip ci]
Just updating documentation, no CI needed.
* (docs) Update documentation
Also update GitHub Actions to vcpkgGitCommitId: dbd30811862212d24bf929db99361c7c12326783
Make most Travis-CI actions required to pass.
Fix clang-tidy warning in cdt-viewer tests.
* (ci, docs)
Update AppVeyor to Visual Studio 2022
Add Table of Contents to README.md, and fix some links.
Update GitHub Actions to vcpkgGitCommitId: f9bea5d58186dc14e7e33132e43b52222147f51e
* (ci, doc, fix) Happy New Year!
Turned on unit tests in Windows CI via AppVeyor.
Update GitHub Actions to vcpkgGitCommitId: 0f719b3fdfc36f8dd45229370a0df180fdbf68f6
Run `git log --follow --format=%ad --date default <file> | tail -1` a bunch to get correct copyright dates on files.
Updated the README to reflect that gmplib.org fixed their SSL cert, and CI works again.
Fix the yearly test on current_date_time to reflect it's 2023.
Close to a release, I think!
* (ci) Remove testing from AppVeyor
Not quite ready.
Also checking if caching is working properly.
* (ci) Fix AppVeyor caching
Documentation is wrong, submitted https://github.com/appveyor/website/pull/841 for the correct directories to cache.
* (docs, ci) Use new CodeCov uploader
Based on https://github.com/friendlyanon/cmake-init-executable/blob/master/.github/workflows/ci.yml
Update warnings in CMakePresets.json to be same as from CompilerWarnings.cmake.
Update README.md to show current run of ./build/src/cdt --help
* (ci) Fix CodeCov uploader [skip ci]
Get the right python.
* (ci) Don't run vcpkg manifest mode in dev mode [ci skip]
Hopefully sets -Wno-error=dev to suppress warnings on VCPKG_BOOTSTRAP_OPTIONS, VCPKG_OVERLAY_PORTS, VCPKG_OVERLAY_TRIPLETS, VCPKG_INSTALL_OPTIONS, and Z_VCPKG_FEATURE_FLAGS.
We can activate this in GitHub so don't run AppVeyor and Travis.
* (ci) Fiddling with CMakePresets for new CodeCov uploader [ci skip]
Back out one change
* (ci) Turn off cmake dev errors [skip ci]
Attempt #2.
* (ci) More CMakePresets fun to fix CodeCov [skip ci]
Got further, but apparently don't use make. Set generator to Ninja which should be installed.
* (ci) Fixing weird filesystem errors [ci skip]
Seems like for gcc the use of <filesystem> only works in c++17 mode.
https://github.com/KhronosGroup/OpenXR-SDK-Source/issues/260
* (ci) Build CodeCov with clang [ci skip]
The weird filesystem header errors appear to be a bug in gcc-11.
* (ci) Remove options not supported by clang [ci skip]
-fkeep-static-functions is not supported and generates an error. -fkeep-inline-functions is not supported and generates a warning.
* (ci) Fix CodeCov upload
Based on https://github.com/skypjack/entt/blob/master/.github/workflows/coverage.yml
Update GitHub Action to vcpkgGitCommitId: 12c2a93b4007612b5ffa980c9d2235eb0bcac10f
* (ci) Fix Codecov uploader [skip ci]
Fix gcov/gcc version mismatch by specifying gcov install. Print out versions explicitly.
* (ci) Fix gcc for Codecov uploader [ci skip]
Gcov is implicitly installed with gcc, so let's ensure it's setup correctly.
* (ci) Use gcc-12 and clang-15 for GitHub Actions [ci skip]
I can kick this off manually in GitHub so no need to run AppVeyor and Travis-CI.
* (ci) Explicitly set compiler in setup-gcc and setup-clang [ci skip]
The `latest` keyword in egor-tensin/setup-clang and egor-tensin/setup-gcc doesn't use the actual latest, so specify gcc-12 and clang-15 explicitly.
* (ci) Update to gcc-12 and clang-15
Switch CodeCov to using clang-15
Standardize more using CMakePresets.json.
* (ci) Fix Travis
Add sourceline to install clang-15
* (ci) Revert Travis-CI to clang-14 and gcc-11
Too time-consuming to figure out at this point.
* (ci) Use cmake presets for GitHub Actions
Plus test whether clang-15 or gcc-11 work with gcov.
* (ci) More GitHub Actions and AppVeyor tuning with CMakePresets.json
Clang-15 seems the closest to getting to work with lcov, so switch to that.
It also now seems to work on Ubuntu 22.04.
Made a cmake preset for AppVeyor.
Turns out the cmake --preset=build also builds packages in vcpkg, so the Install packages step was installing them twice! That should speed up builds considerably on GitHub Actions.
* (ci) Fix AppVeyor and SonarCloud
Looks like SonarCloud only works with gcc-11.
AppVeyor started in the wrong directory.
* (ci) Fix AppVeyor and SonarCloud, try #2
Set the $VCPKG_ROOT environment variable in AppVeyor.
Use the build-wrapper in SonarCloud.
* (ci) AppVeyor #3
See if /DNOMINMAX is still required.
* (ci) Try to resolve gcov/gcc version mismatch
CodeCov fails because there's a version mismatch between gcc and gcov.
However, both gcc and gcov are at 11.3.0 so there shouldn't be a mismatch. A suggested fix is to change the directory to ensure artifacts from previous runs (which shouldn't be there in CI, but ...) aren't there.
Update GitHub Actions to vcpkgGitCommitId: c30de8e1369e03f4a569f8f224eed418dd0949bb
* (ci) Turn off QT in GitHub Actions
cdt-viewer uses QT which takes more than an hour to build in GitHub Actions, so disable that target in CI.
Update GitHub Actions to vcpkgGitCommitId: d40bedd6f6ab6ee47fd5d45e59e9a31e48872a59
* (ci) Also remove the tests for cdt-viewer [ci skip]
On GitHub Actions using macOS, we want to disable building cdt-viewer. Which worked, but forgot to also disable the tests.
Unfortunately this only saves link/compile time for cdt-viewer, but not the 3 hours it takes to build qt on the GitHub Actions runner with macOS.
vcpkg.json only understands platform, not environment variables.
* (test) Write a bistellar-flip test harness
We want to draw a minimal triangulation before and after a bistellar flip. The reason this is not in /tests is because it uses CGAL::draw() to display the results, which requires Qt5. Qt5 is extremely heavy and not needed for the other unit tests, so I don't want to require/link it to the test binary.
* (ci) Delete build caches
AppVeyor and GHA caching is failing.
Also update GHA to vcpkgGitCommitId: ae826fceaa15109814d0531faeda424f43047822
* (ci) Revert SonarCloud and CodeCov ci script , AppVeyor caching
SonarCloud and CodeCov are failing at the build step so revert configuration to using a long CMake command rather than CMakePresets.json.
Also turn on caching again for AppVeyor.
* (ci) Fix codecov and hopefully SonarCloud coverage
Looks like the new codecov action can run gcov by itself, so remove that step.
Update GHA to vcpkgGitCommitId: f1c9431598c2b8aa5168c35485c9a28321ff9f09
* (ci) Coverage should work now ...
Verified steps to be run manually ...
* Update packages, debug draw
Update vcpkgGitCommitId: 8e986ec51ae9728ff44b854390eef168f88ec687.
For whatever reason Qt doesn't popup.
* Update vcpkg
vcpkgGitCommitId: a7b6122f6b6504d16d96117336a0562693579933
* (fix) Enforce FoliatedTriangulation class invariant
The FoliatedTriangulation class invariant is that the timevalues and cell types stored in the vertices and cells of the Delaunay triangulation must correct.
The initialization order of the data members was re-arranged so that the triangulation, foliation initial radius, and foliation spacing were initialized first. This allows the vertices to be checked and corrected, and they are initialized next. Once the vertices have the correct timevalues, the cells can be initialized with the correct cell types. All other containers of edges and faces (sub-simplices) derive from the vertices and cells.
Also update to vcpkgGitCommitId: ae59b93af0c1dce4126e963fca5b330662495fa1
* (fix) Fix CI errors
Use newer version of clang-format, make cdt-opt triangulations larger so all moves are available and test doesn't fail.
Sadly Visual Studio 2022 now wants clang-15, still looking at that. Attempting Previous Visual Studio 2022 image on AppVeyor, which was working.
* (fix) More clang-format
Also document current issues with AppVeyor and CodeCov.
* Revert to using CodeCov GitHub Action
Working with Codecov Community support to determine why coverage is so different using the GitHub Action vs. using the Bash uploader.
https://community.codecov.com/t/codecov-github-action-doesnt-work-well-compared-to-bash-uploader/4220/4
Updated vcpkgGitCommitId: b81bc3a83fdbdffe80325eeabb2ec735a1f3c29d
Turn off the main program flow in bistellar-flip when in Debug, because Doctest runs in Debug mode instead.
Bistellar-flip links to Qt5, which adds a lot of overhead, so we don't want to use it unless needed (i.e. Release).
* Add method to read Delaunay triangulation in the Manifold
Also switch CodeCov back to the bash uploader.
Update GHA to vcpkgGitCommitId: d1e2ff0c340f89cc14ca67883dd069c6ada93582
Remove reference to vcpkg's installation bug of gmp on x64-osx, which has been fixed.
* Fix get_triangulation().get_delaunay calls
As well as documentation (@return -> @returns) and vcpkgGitCommitId: d10d511f25620ca0f315cd83dcef6485efc63010
* (fix) Fix make_triangulation and is_62_movable
Change potential infinite while loops to bounded for loops.
* (ci, fix) Add clang-tidy check, fix README
Add a check for clang-tidy on changed files.
Fix Travis-CI badge in README.
Fix documentation on Ergodic_moves_3.hpp.
vcpkgGitCommitId: c9f906558f9bb12ee9811d6edc98ec9255c6cda5
* (fix) Fixes to CodeCov and clang-tidy
Try using CodeCov GitHub action with gcov.
Move using statements inside ergodic_moves namespace so they aren't accidentally used elsewhere.
Fix do-while loops in incident_cells_from_edge, get_incident_cells, and find_pivot_edge.
Make more things const in FoliatedTriangulation<3>.
Use ergodic_moves namespace in bistellar-flip.cpp and Ergodic_moves_3_test.cpp.
* (fix) clang-format, doctests
Update to vcpkgGitCommitId: 69efe9cc2df0015f0bb2d37d55acde4a75c9a25b.
Fix format in bistellar-flip.cpp.
Use doctest's unary asserts to improve compilation times.
Use min_element, max_element, sort, and adjacent_find to more efficiently compare results from random number generator in tests.
* (fix) README, more tests
Fix the link to Travis-CI badge in README.md.
Use unary asserts in more tests.
* Remove -Wcomment warnings, use CHECK_EQ, REQUIRE_EQ
Ignore -Wcomment warnings on documentation that includes LaTEX. There's no way to resolve the warning without breaking the LaTEX formulas.
CHECK_EQ, REQUIRE_EQ compile 60% faster than the templated CHECK tests, so use those.
Update to vcpkgGitCommitId: cd5a39fc6333563884d9eea15bfb6f5a450b1cf1
* (ci) Try new CodeCov GitHub Action
Also update vcpkgGitCommitId: 4116148a7f5c09d39da34ffb75f33283796d687b
* (refactor) Update to Boost 1.82
Also revert to CodeCov bash uploader.
vcpkgGitCommitId: 501db0f17ef6df184fcdbfbe0f87cde2313b6ab1
* (ci) Update AppVeyor and CodeCov
AppVeyor broken but trying latest image. Remove directory spec from CodeCov GitHub action.
Use vcpkgGitCommitId: 6a3dd0874f153f8b375ec26210ea6d41dee3bb26
* (test) Activate certain tests
Apply_move tests were inactive due to some bug which should be fixed.
Move_always strategy tests activated on smaller triangulations.
This should increase coverage.
* (ci) Update CodeCov and SonarCloud to use gcc-12
Also update README as the latest AppVeyor image fixes the clang-16 problem.
Use ubuntu-latest on GitHub Actions, which runs Ubuntu 22.04.
Use macos-latest on GHA, which uses macos-12.
Use windows-latest on GHA, which uses windows-2022.
* (ci, refactor) Undo gcc-12 on CodeCov and SonarCloud
gcov has a version mismatch when reading .gcno files:
https://github.com/acgetchell/CDT-plusplus/actions/runs/4898327490/jobs/8747323081#step:9:20
Prune some unreachable code.
Remove some deprecated SonarCloud properties.
* Add back default cases and remove Expects and Ensures
Removing the default case from switches triggers a warning on Sonarcloud.
Ensures and Expects just end up calling std::terminate, but without any indication as to where the error is. So replace these with assert which will at least print the error line in Debug and be removed with NDEBUG.
* Update vcpkg
vcpkgGitCommitId: 65e91ebd9e1d8a5c054b98b87abef68d5d36ce6f
* Update packages
Add Settings tests back in.
vcpkgGitCommitId: a960fde0b60b6392d70375fe513dfa7eb083cc3a
* Update vcpkg to commit 5d2a0a9 in workflows and tests
This commit updates the vcpkg dependency in all GitHub workflows and tests from commit a960fde to commit 5d2a0a9. This change was made to ensure that the latest version of vcpkg is being used, which should improve compatibility with other dependencies. The changes were made using lukka/run-vcpkg@v11 instead of lukka/run-vcpkg@v10.
* Refactor build and test scripts for CI/CD workflows
- Update Appveyor script to run ctest on success
- Add continue-on-error flag to Github workflow test jobs
- Add test job to Linux and MacOS Github workflows
* feat: Add test for check_move function
This commit adds a new test scenario to the `Ergodic_moves_3_test.cpp` file. The test scenario checks if the `check_move` function returns true when a correct (2,3) move is performed on a given triangulation setup. The test creates a manifold with vertices and timevalues, performs the move, and then checks various properties of the resulting manifold. If all properties are as expected, the `check_move` function should return true.
The commit also includes a new free function called `make_causal_vertices`. This function takes in vectors of vertices and timevalues and creates causal vertices by pairing each vertex with its corresponding timevalue. If the sizes
* Update AppVeyor and Codecov configurations
- Updated the test script in `.appveyor.yml` to include generating JUnit test results and uploading them to AppVeyor API.
- Modified the `patch` and `changes` settings in `.codecov.yml` to disable patch uploads and changes detection.
- Changed the GCC version from 11 to 12 in `.github/workflows/codecov-upload.yml`.
- Added `gcov` package installation in `.github/workflows/codecov-upload.yml`.
* Refactor build and test scripts, update dependencies
- Refactored the build script in `.appveyor.yml` to use `cmake --preset=appveyor` and `cmake --build build`.
- Updated the test script in `.appveyor.yml` to run tests using `ctest`, outputting results to `test-results.xml`.
- Modified the after-test script in `.appveyor.yml` to upload test results using cURL.
- Updated dependencies in `.github/workflows/codecov-upload.yml` by upgrading packages and installing additional ones.
* Refactor code to use `foliated_triangulations::make_causal_vertices` function for creating causal vertices from points and timevalues.
- Refactored the `manifolds::make_causal_vertices` function in `Manifold.hpp` to use the `foliated_triangulations::make_causal_vertices` function.
- Updated the test cases in `Foliated_triangulation_test.cpp` to use the new `foliated_triangulations::make_causal_vertices` function.
- Removed unnecessary comments and debug statements.
* Refactor code for Manifold initialization and mutation
- Refactored the code in `Manifold.hpp` to update data structures when constructing a new triangulation or geometry.
- Updated the test cases in `Manifold_test.cpp` to use a 3-manifold instead of a manifold with four vertices.
- Added comments to clarify the purpose of constructing a new triangulation or geometry.
This commit improves the code for initializing and mutating 3-manifolds.
* Update GCC and Clang versions in CI configuration
- Updated the GCC version from 12 to 11 in `.github/workflows/codecov-upload.yml`
- Updated the GCC and Clang versions from 11 and 14 to 12 and 15 respectively in `.travis.yml`
Remove unused code
- Removed the unused `Causal_vertices` type from `Tetrahedron_test.cpp`
* Fixed FoliatedTriangulation copy constructor
Fixed macOS workflow and copy constructor
The commit updates the macOS workflow to run on macOS-13 instead of macos-latest. This ensures that the workflow runs on a specific version of macOS.
Additionally, the copy constructor of the `FoliatedTriangulation` class is fixed. It now correctly initializes the copied object with the same properties as the original, including the initial radius and foliation spacing. This ensures that all relevant data is properly copied when creating a new instance of `FoliatedTriangulation`.
* Fix macOS build
The commit fixes the macOS build by installing the pkg-config package as a dependency for macOS.
Also update vcpkgGitCommitId to 1ec3d05438d4c1edf62a330f65fcfe1d86e791b2 in multiple workflows.
* Update vcpkgGitCommitId in workflow files
- Updated the vcpkgGitCommitId in multiple workflow files to 78784c0b0aa87ae63bce01c2c040ce1b3269ecd1. This ensures that the correct version of vcpkg is used during the build process.
* Update vcpkgGitCommitId in workflow files
- Updated the vcpkgGitCommitId in multiple workflow files to "16eeb024de901eb84cde966f656027beaad8b450" for consistency and compatibility.
* Update vcpkgGitCommitId in GitHub workflows
- Updated the vcpkgGitCommitId in multiple GitHub workflow files to use a new commit ID (0895a813036f4d189e2bdd1b62741744614347b4) instead of the previous one (16eeb024de901eb84cde966f656027beaad8b450).
* Update vcpkgGitCommitId in GitHub workflows
- Updated the vcpkgGitCommitId in multiple GitHub workflow files to d5b03c125afee1d9cef38f4cfa77e229400fb48a. This ensures that the correct version of vcpkg is used during the build process.
* Add get_cell function
The commit adds a new function called "get_cell" to the Manifold.hpp file. This function retrieves a cell handle from four vertex handles. The commit also includes changes to various workflow files and a test file, updating the vcpkgGitCommitId value.
* Add new function
- Added a new function `get_vertex` to the `Manifold.hpp` file that obtains a vertex handle from a given point.
- Updated the `.github/workflows/codecov-upload.yml`, `.github/workflows/codeql-analysis.yml`, `.github/workflows/linux-clang.yml`, `.github/workflows/linux-gcc.yml`, `.github/workflows/macos.yml`, and `.github/workflows/windows-msvc.yml` files to use a different commit ID for restoring artifacts or setting up vcpkg.
- Added a new file, `.clang-tidy`, in the `cmake` directory with content to disable all checks in that folder.
- Modified the `Foliated_triangulation.hpp` file to correct a typo in a comment.
- Modified the `scripts/clang-tidy.sh` script to copy the blank `.clang-tidy` file into the build directory, which tells clang-tidy to ignore Qt files causing warnings.
- Modified the `Geometry_test.cpp` and `Manifold_test.cpp` test files by adding const qualifiers where appropriate and updating variable names for clarity.
- Modified the `Utilities_test.cpp` test file by adding constinit specifier for constant variables and updating an auto iterator declaration.
* Fix AppVeyor
MSVC complains about auto* here:
error: variable 'adjacent_iterator' with type 'auto *' has incompatible initializer of type 'std::_Array_iterator<int, 6>'
auto* adjacent_iterator =
^
Change sonarcloud.yml to use gcc-11 just like codecov, due to the gcov database incompatibility with gcc.
Update the vcpkgGitCommitId in workflows to "962e5e39f8a25f42522f51fffc574e05a3efd26b".
* Boost 1.83
Update vcpkgGitCommitId to 7476f0d4e77d3333fbb249657df8251c28c4faae in workflow files
The commit updates the vcpkgGitCommitId to 7476f0d4e77d3333fbb249657df8251c28c4faae in multiple workflow files. This change ensures that the current version of Boost (Boost 1.83) is used for the build and analysis processes.
* Backed out qt
qt is broken on arm64-osx
https://github.com/microsoft/vcpkg/issues/33882
Commented out code depending on qt, e.g. cdt-viewer and related tests.
* Use a span of Vertex_handles for read-only
The commit introduces the use of a span of `Vertex_handle` objects for read-only access in the code. It modifies the `Foliated_triangulation.hpp` and `Manifold.hpp` files to add a new member function `get_vertices_span()` that returns a span of vertices. The changes also include updating the test cases in `Vertex_test.cpp` to use the new member function.
* More ranges
More ranges
Refactor the `make_causal_vertices` function in both `Foliated_triangulation.hpp` and `Manifold.hpp` to accept `std::span` instead of `std::vector`. This allows for more flexibility when passing in vertex and timevalue containers. The function now uses `std::ranges::transform` instead of `transform`, improving code readability.
Update vcpkg
* Re-added Qt
Issue fixed. https://github.com/microsoft/vcpkg/issues/33882.
Also updated clang-tidy config file and vcpkg ports.
Now that we're building Qt again, though, there are unfixable (by me) clang-tidy errors from Qt that prevent clang-tidy from running.
It's similarly grim on PVS Studio.
* feat: Add <chrono> header for time-related functionality
This commit adds the `<chrono>` header to the `Utilities.hpp` file, allowing for the use of time-related functionality. The change is made in the `current_date_time()` function, where `std::chrono::system_clock::now()` is used instead of just `system_clock::now()`. This ensures that the code compiles correctly and provides accurate date and time information.
refactor: Update function signature in write_file()
The `write_file()` function in the `Utilities.hpp` file now takes a `std::filesystem::path` object as its second parameter instead of a `std::string`. This change improves type safety and makes it clearer that a file path is expected. Additionally, within this function, the filename is printed using `.string()` to obtain its string representation.
refactor: Update function signature in read_file()
Similar to the previous change, the `read_file()` function now takes a `std::filesystem::path` object as its parameter instead of a `std::string`. This modification enhances type safety and clarifies that a file path should be provided. The filename is also printed using `.string()` to display its string representation.
docs: Remove outdated information from README.md
In this commit, outdated information regarding CodeCov coverage dropping significantly has been removed from the README.md file. The related links have also been removed since they are no longer relevant.
test: Update string comparison in Utilities_test.cpp
The string comparisons in the Utilities_test.cpp file have been updated to use `.string()` on filenames before calling `.find()`. This ensures that correct substring matching occurs when checking various parts of filenames. Additionally, print statements have been modified to use `.string()` for displaying filenames during testing.
* Refactor code to remove unused code and add debug log messages
- Remove commented out code for fixing cells in `Ergodic_moves_3.hpp`
- Refactor `classify_cells` function in `Foliated_triangulation.hpp` to be static
- Add include for `<format>` in `Utilities.hpp`
- Comment out unused code in test scenarios in `Ergodic_moves_3_test.cpp`
- Add debug log messages to test scenarios in `Ergodic_moves_3_test.cpp`
The commit message is:
"Refactor code, remove unused code, and add debug log messages"
* Add Linux Clang with pkgx workflow and comment out unsupported std::format
- Added a new workflow file for Linux Clang with pkgx
- Set up necessary dependencies and tools in the workflow
- Configured cmake, built, and tested the project
- Commented out the use of std::format due to lack of support in clang-15
* Update Linux-clang-pkgx workflow [skip ci]
This commit updates the Linux-clang-pkgx workflow by adding a step to print the version of clang.
* Start using pkgx on ci
Use pkgx to install compilers in GitHub Actions.
Replaces egor-tensin/setup-clang and egor-tensin/setup-gcc, which are no longer maintained.
Fix clang-format warning.
* Switch more GitHub Actions to pkgx
- Updated the version of clang-format-action from v4.5.0 to v4.11.0.
- Changed the GCC version in setup-gcc action from 11 to 13.
- Updated the version of cpp-linter-action from v2 to v3.
- Removed unnecessary steps related to GCC setup in codeql-analysis.yml and sonarcloud.yml workflows.
- Added a step to print the GCC version using "gcc --version" command.
Note: These changes improve compatibility and enhance code formatting and linting processes.
* Fix GitHub Actions
I deleted all the old caches, so this will rebuild the needful.
Also, the vcpkg qt5-base port has some fixes, so this will trigger a rebuild of qt5.
Added badges in README.md to track cpp-linter and whitespace checks.
* De-cluttering test printouts
- Removed unnecessary test printouts in the code
- Updated vcpkgGitCommitId to ae360361a434310ffee36d84eb01c033b648fb22 in multiple workflows
- Modified classify_cells function to be const
* Use C++23 standard
* Use c++23 std::expected
This removes a dependency on tl::expected.
* Reset develop back to C++20
* Revert to C++20
* feat: Add print_cell function and update print_cells
- Added a new function `print_cell` to the `Foliated_triangulation` class that prints information about a cell in the triangulation.
- Updated the existing `print_cells` function to use the new `print_cell` function for printing each cell in the container.
- Modified error handling in `bistellar-flip.cpp` and `cdt-viewer.cpp` to use spdlog for logging critical errors.
- Added test cases in `Foliated_triangulation_test.cpp` to verify the correctness of the new functions.
* feat: Add cache directory to AppVeyor configuration
The cache directory `c:\tools\vcpkg\installed\` has been added to the AppVeyor configuration file `.appveyor.yml`. This change ensures that the installed packages are cached and can be reused in subsequent builds, improving build performance.
refactor: Refactor print_cell function in Foliated_triangulation.hpp
The `print_cell` function in the `Foliated_triangulation.hpp` file has been refactored. The function now correctly prints the timevalues of each vertex in the cell and the resulting cell info.
feat: Add print_neighboring_cells function in Foliated_triangulation.hpp
A new function `print_neighboring_cells` has been added to the `Foliated_triangulation.hpp` file. This function allows printing neighboring cells of a given cell in a triangulation.
test: Update test cases for FoliatedTriangulation functions
Several test cases have been updated for the `FoliatedTriangulation` functions. The changes ensure that containers of cells are printed correctly and that neighbors of a chosen cell can be printed as expected. Additionally, some test cases have been modified to improve code readability and consistency.
fix: Fix vertex error detection in Detecting and fixing problems with vertices and cells tests
In the "Detecting and fixing problems with vertices and cells" tests, vertex error detection has been fixed. Previously, an incorrect condition was used which resulted in false positives for detecting vertex errors. The fix ensures accurate detection of vertex errors.
chore: Update dependencies for Delaunay3 functions from FoliatedTriangulation_3
Dependencies have been updated for Delaunay3 functions used by FoliatedTriangulation_3. This update ensures compatibility with newer versions of external libraries or frameworks being used.
docs: Update documentation for FoliatedTriangulation_3 functions
Documentation for the FoliatedTriangulation_3 functions has been updated to reflect recent changes and improvements. This update improves the accuracy and clarity of the documentation, making it easier for developers to understand and use these functions.
refactor: Improve code readability in FoliatedTriangulation_test.cpp
Code readability has been improved in the `FoliatedTriangulation_test.cpp` file. This includes better indentation, consistent naming conventions, and removing unnecessary comments or code blocks. These changes make the code easier to read and understand.
* Update clang-format version to 17 and update compiler versions in Travis CI configuration file.
Add a new function `debug_print_cells` to print time values of each vertex in the cell and the resulting cell info.
Modify the script `clang-tidy.sh` to create a blank `.clang-tidy` file in the build directory to ignore Qt files causing warnings.
* Remove unused compilers and dependencies in .travis.yml
- Removed gcc-13, g++-13, clang-16 from the list of compilers
Comply with clang-format-17.
Update vcpkg to 01acfdfde3ed99280d3883a8fccd5fa4408f5214
* Update before_install script in .travis.yml
- Add travis_wait 60 before the existing command to increase timeout
- Update the code to use gcc-13 as the C++ compiler
* Update Travis CI configuration to use `curl -fsS` instead of `eval "$(curl https://pkgx.sh)"` for installing packages.
Fix pkgx install.
* Update Travis CI configuration
- Remove unnecessary `travis_wait` command
- Update package installation process using `pkgx`
- Add command to display help information for `pkgx`
- Update environment variables for GCC version 13
* Refactor GitHub workflow files for improved concurrency handling
This commit refactors the GitHub workflow files to improve concurrency handling. The changes include adding a new `concurrency` section to each file, which allows builds to complete even if merging happens faster. This makes it easier to discover at which point something broke. The `group` value in the `concurrency` section is set based on the branch being built, using a combination of the branch name and the commit SHA.
The affected files are:
- `.github/workflows/clang-format-check.yml`
- `.github/workflows/codecov-upload.yml`
- `.github/workflows/codeql-analysis.yml`
- `.github/workflows/linux-clang-pkgx.yml`
- `.github/workflows/linux-clang.yml`
- `.github/workflows/linux-gcc.yml`
- `.github/workflows/macos.yml`
- `.github/workflows/sonarcloud.yml`
- `.github/workflows/windows-msvc.yml`
- `.github/workflows/windows-pkgx.yml`
Additionally, the Travis CI configuration file (`.travis.yml`) has been updated to handle different versions of GCC and Clang compilers.
These changes aim to enhance build performance and reliability by ensuring that all builds complete successfully, regardless of merge speed.
* Travis-CI and pkgx don't get along
* Refactor GitHub Actions workflows to use a dynamic concurrency group
This commit refactors the GitHub Actions workflows to use a dynamic concurrency group based on the workflow and branch name. The previous implementation used a static format for the concurrency group, which caused issues when merging changes quickly. Now, each workflow will have its own unique concurrency group based on the workflow name and branch name. This change improves build completion and makes it easier to identify breaking points in the CI pipeline.
* Update vcpkg, AppVeyor, more ranges
- Updated vcpkg and AppVeyor configurations
- Added test_script and after_test steps in .appveyor.yml
- Updated vcpkgGitCommitId in codecov-upload.yml, codeql-analysis.yml, linux-clang-pkgx.yml, linux-clang.yml, linux-gcc.yml, macos.yml, sonarcloud.yml, windows-msvc.yml, windows-pkgx.yml
- Updated constants in Settings.hpp and Torus_d.hpp
- Removed t_output_flag parameter from expected_points_per_timeslice function in Utilities.hpp
- Created logger with console_sink, debug_sink and trace_sink in create_logger function of Utilities.hpp
- Modified main function in cdt.cpp to use const for argc and dimensions variables
* Apply a bunch of suggested fixes
- Removed unused include statements
- Replaced std::shuffle with std::ranges::shuffle
- Replaced std::any_of with std::ranges::any_of
- Replaced std::all_of with std::ranges::all_of
- Replaced std::for_each with std::ranges::for_each
- Simplified boolean expressions in return statements
* feat: Add Python 3.11 support to macOS workflow
The macOS workflow now installs Python 3.11 using Homebrew and links it as the default version.
fix: Update logging statements in Ergodic_moves_3.hpp
Replaced `fmt::print` with `spdlog::info` for logging the number of cells in the triangulation after adding new cells. Also added a warning log if the triangulation is not valid.
refactor: Include Move_command.hpp in Metropolis.hpp and Move_always.hpp
Added an include statement for Move_command.hpp in both Metropolis.hpp and Move_always.hpp.
refactor: Improve comments and documentation in MoveCommand class
Updated comments and documentation for various member functions of the MoveCommand class to provide more clarity on their purpose and usage.
refactor: Improve comments and documentation in MoveStrategy class
Improved comments and documentation for the MoveStrategy class, specifying that it selects a move algorithm based on the chosen strategy enum value.
fix: Handle invalid results in cdt-opt.cpp and cdt.cpp
Added error handling code to throw runtime_error if the result is invalid. Updated catch blocks to handle runtime_error exceptions separately, printing an appropriate error message.
* feat: Update macOS workflow and MoveCommand class
- Removed the `2to3` binary from `/usr/local/bin`
- Updated the macOS workflow to install necessary dependencies
- Added comments to clarify the purpose of variables and functions in the `MoveCommand` class
- Improved documentation for the `move_type` enum and related functions in the `Move_tracker` namespace
* Remove unnecessary files and update dependencies in macOS workflow.
Refactor MoveTracker class to improve readability and maintainability:
- Add brief descriptions for member functions
- Use consistent naming conventions for access functions
- Improve documentation comments for each move type
* Update macOS and Travis CI configurations
- Try to fix macOS on GitHub Actions
- Try to install gcc-13 on Travis-CI
- AppVeyor nicely increased my timeout to 90 minutes, so remove Issue
* Use pkgx to install gcc-13 and clang-16 on Travis-CI
* Travis-CI + pkgx
* Bog standard install of gcc-13
clang-16 seems to be already present.
* Add gcc-12 to the list of required packages in .travis.yml
This commit adds gcc-12 to the list of required packages in .travis.yml. This change ensures that the build environment has gcc-12 available for compilation.
* Update Travis CI configuration
- Update the `apt` section to enable package updates
- Add `g++-12` package to the list of packages to be installed
- Set environment variables for CXX and CC in the `before_install` section
These changes ensure that the necessary packages are updated and installed correctly, and set the appropriate compiler versions for building.
* Update compiler versions in .travis.yml
- Update gcc to g++-12
- Update clang to clang-16
* Update macOS.yml and .travis.yml
- Remove idel3.11 from the list of removed files in macOS.yml
- Add update-alternatives commands to set g++-12 and clang++-16 as default compilers in .travis.yml
* Fix Travis, update GitHub actions
- Put old compilers back in place on Travis-CI
- Test out a GitHub action to build and deploy documentation using Doxygen + GitHub Pages
- Update vcpkg, since new version rebuilds qt5
- Delete linux-clang-pkgx.yml, since we're now using pkgx to install the latest versions of clang and gcc on the GitHub Actions runner
If Doxygen GHA works, may consider retiring the use of Travis-CI since it's hard to get up-to-date C++ compilers installed.
* Deprecate Doxygen on Travis-CI [skip ci]
Allow Doxygen GitHub Pages Deploy Action to run on pushes to develop branch and all pull_requests.
Remove yet another annoying macos-13 python update library glitch.
* Still fixing macos on GitHub [skip ci]
* And another python3 error in GHA [skip ci]
* Yet another python3 update error in GHA [skip ci]
* Setup Valgrind on GHA [skip ci]
* Add Valgrind installation to the workflow
This commit adds the installation of Valgrind to the workflow, ensuring that it is available for use in subsequent steps.
* Fix macOS and Valgrind [ci skip]
* Fix Valgrind [ci skip]
Be more prescriptive about when to run expensive checks like CodeCov, CodeQL, and SonarCloud. Likewise, only build documentation for develop and main branches.
* Fix known Valgrind/ASAN issue [skip ci]
https://github.com/google/sanitizers/issues/856
Don't use -fsanitize=address on compile step.
* Update Valgrind configuration for Clang [ci skip]
- Change the setup to use Clang instead of GCC
- Update CMakePresets.json to use Clang as the C and C++ compilers
* Fix Valgrind on clang [ci skip]
* Revert Valgrind back to g++, at least some tests work [skip ci]
* Run Valgrind checks separately [ci skip]
So a failed check doesn't abort succeeding checks.
* Update vcpkg
Remove Valgrind from Travis-CI.
* Enable ASAN on GHA [skip ci]
Also run valgrind in Debug mode.
* Migrate Sanitizers to GHA [skip ci]
* Use a repo variable to update vcpkg
Also deprecate those tests in Travis-CI.
Update documentation.
* Add Cppcheck workflow, presets, and build steps [skip ci]
- Added a new file `.github/workflows/cppcheck.yml` to include a Cppcheck workflow.
- Modified `.travis.yml` to comment out the CppCheck job.
- Modified `CMakePresets.json` to add a new preset for cppcheck.
- Updated badges in `README.md`.
This commit adds support for running Cppcheck as part of the CI/CD pipeline.
* Update HPC and PVS Studio scripts
Also update version of vcpkg to c8696863d371ab7f46e213d8f5ca923c4aef2a00 in repo
* Update Slurm script
For running on HPC
* Boost 1.84
Small fixes in bistellar-flip.cpp.
This commit is to document a compile-time bug with vcpkg's CGAL port with the qt feature enabled.
* Update vcpkg to fix macOS qt build issue
* Fixing vcpkg build of python on macOS [skip ci]
* Remaining vcpkg python macOS update fixes [skip ci]
* Still need old fixes too [skip ci]
* Fix docopt
They also got rid of the annoying difference where the Linux library was oddly named 'docopt_s' and the Windows library was the more sensible 'docopt'. So I can collapse my cmake file.
* Fix docopt #2
Windows and macOS builds and links to docopt library, Linux links to docopt_s.
* ci: Try clang-18 via pkgx [ci skip]
* ci: Fix when checks run
More checks run on pull requests.
Switch to using M1 macOS runner.
* ci: Update to clang-18
* ci, style: clang-format and macOS
Fix clang-format changes.
Go back down to the free tier for macOS.
Update code-ql action.
* test: format/fix tests
* feat: Switch from docopt to boost::program_options
Docopt isn't being maintained anymore, has long-standing reported bugs, and generates different linker targets depending on platform. In particular, building for HPC was getting to be a pain.
This explores using boost::program_options, since I already need Boost for CGAL.
* ci, fix: macOS and Linux builds
Enable macOS builds on all pull requests.
Add linker target for boost::program_options on Linux.
* feat: Replace docopt on cdt
Add usage message back to initialize.
Swap out docopt for boost::program_options on cdt executable.
* feat: Replace docopt on cdt-viewer
Also remove docopt from vcpkg.
* docs: Update documentation [ci skip]
Remove references to docopt and update help screen.
* ci, fix: Fix fmt::join, update Github actions
* ci: update GitHub Actions
* ci: Update remaining actions
Fix SonarCloud, remove building on macOS until fontconfig issue resolved.
* fix: MSVC error
The error message indicates that the Clang compiler does not recognize the `/utf-8` option, which is a Microsoft Visual C++ (MSVC) specific option. To resolve this issue, you need to conditionally add the `/utf-8` flag only when using the MSVC compiler.
Here's how you can modify your `CMakeLists.txt` to conditionally add the `/utf-8` flag:
1. Check if the compiler is MSVC.
2. If it is, add the `/utf-8` flag.
* ci: Check if clang-19 available [skip ci]
* ci: Update to clang-19
* Feature/c++23 (#76)
* Make separate branch for C++23
* Fix merge errors from develop
* ci: update to clang-18 via pkgx
This should resolve the build failure for updating to C++23. clang-17 didn't support std::expected, but clang-18 should.
* ci: Fix checking twice on PRs and pushes
* ci: Fix Travis and AppVeyor
* ci: Fix clang on Travis-CI
* ci: Don't double build PR pushes on Travis-CI
* Feature/fix appveyor (#77)
* ci: Fix appveyor
* ci: Fix pkgx windows error
* ci: pkgx fixes [skip ci]
* ci: Updates [skip ci]
* ci: Allow clang-format to run by request [skip ci]
* fix: strip out qt temporarily
Until we can get it to compile again
* fix: CoderabbitAI suggestions
* fix: Coderabbit suggestions part 2
* fix: More Coderabbit tuning
* fix: AppleClang
C++23 support check left out AppleClang
* Update src/bistellar-flip.cpp
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* ci: disable macos
* ci: Fix workflows mostly
Note we also updated vcpkg
* ci: CodeRabbit suggestions
* ci: Fix comment [ci skip]
* ci: revert Coderabbit suggestion [ci skip]
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* ci: Fix macOS GitHub Action [skip ci]
* ci: Coderabbit and macOS update
* Improves move application and validation
Refactors move application to handle cases where a move cannot be applied due to manifold configuration.
Skips the test when a move cannot be applied, and logs a warning message providing better test reporting.
Also, the Boost library is now found using config mode. A cmake policy is set to avoid warnings.
* ci: Update gcc [skip ci]
* Improves Bistellar flip reliability
Adds checks for invalid and infinite cells and vertices during the Bistellar flip operation to improve reliability. Includes extensive debugging information to diagnose failures. Also includes a suite of tests to verify that bistellar flips are correctly implemented.
* ci: Updates CI workflows for newer tool versions
Updates the CI workflows to use newer versions of Clang and GCC. Also updates the pkgxdev/setup action to v4 to ensure compatibility.
The change ensures that the CI environment uses the latest compiler versions for better code analysis and compatibility testing.
An additional change orders the includes.
* ci: Configures Dependabot for GitHub Actions [skip ci]
Sets up Dependabot to automatically update GitHub Actions dependencies on a weekly basis.
This ensures that the project stays up-to-date with the latest security patches and feature improvements for GitHub Actions workflows.
* Bump jidicula/clang-format-action from 4.13.0 to 4.15.0 (#80)
Bumps [jidicula/clang-format-action](https://github.com/jidicula/clang-format-action) from 4.13.0 to 4.15.0.
- [Release notes](https://github.com/jidicula/clang-format-action/releases)
- [Commits](https://github.com/jidicula/clang-format-action/compare/v4.13.0...v4.15.0)
---
updated-dependencies:
- dependency-name: jidicula/clang-format-action
dependency-version: 4.15.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump pkgxdev/setup from 2 to 4 (#79)
Bumps [pkgxdev/setup](https://github.com/pkgxdev/setup) from 2 to 4.
- [Release notes](https://github.com/pkgxdev/setup/releases)
- [Commits](https://github.com/pkgxdev/setup/compare/v2...v4)
---
updated-dependencies:
- dependency-name: pkgxdev/setup
dependency-version: '4'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Create codeql.yml
* ci: Remove old CodeQL
* Bump codecov/codecov-action from 4 to 5 (#81)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5)
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix: Explicitly use MPFR and GMP and turn off BoostMP
Boost Multiprecision has a packaging bug. And we rely on MPFR/GMP for intensive calculations anyways, so configure CGAL to use them instead of Boost Multiprecision.
* ci, doc: Fix macOS runner, update README [ci skip]
* ci: Check which version of clang is active in macOS [ci skip]
* Really setup Xcode 15.3 [skip ci]
* refactor(tooling): modernize the v1.0.0 development workflow (#99)
Closes #89
* refactor(tooling): modernize the v1.0.0 development workflow
- pin the official vcpkg baseline and add local and pkgx bootstrap paths
- unify supported platforms in GitHub Actions and retire legacy services
- replace tl-function-ref with Boost.Compat and remove unused dependencies
- document the main-based maintenance and regression-oracle workflow
* refactor(tooling): complete the v1.0.0 development workflow
- add Just recipes for checks, formatting, builds, runs, and action updates
- enforce the pinned vcpkg bootstrap across Unix and Windows
- provide Unix build tooling through pkgx with compatible version pins
- consolidate platform CI and pin GitHub Actions to immutable revisions
- remove legacy scan-build support and refresh contributor guidance
- tighten smoke-test and time-formatting behavior
Refs #89
* fix(tooling): harden CI and bootstrap validation
- authenticate Codecov uploads with OIDC and remove the committed token
- run the build matrix for develop-targeted pull requests during migration
- align local formatting with CI using clang-format 18
- reject unusable cached vcpkg executables before reuse
* fix(ci): restore cross-platform build validation
- resolve GCC and Clang within a single pkgx environment
- emit UTC timestamps without requiring an external timezone database
- run a portable Windows smoke suite while deferring the initializer crash
- scope Codecov OIDC access and validate cached vcpkg tool releases
* fix(ci): stabilize cross-platform validation
- avoid nested pkgx environments when selecting Linux compilers
- generate filename-safe UTC timestamps and exclude stochastic utilities from smoke presets
- verify cached Windows vcpkg binaries against pinned release hashes
- document the Codecov OIDC permission rationale
* fix(ci): remove ccache from reference builds
Stop provisioning ccache through pkgx because the supported reference
preset disables compiler caching, and align the documented prerequisites.
Simplify filename-safe timestamp sanitization with std::replace.
* refactor(build): consolidate the supported CMake presets
Replace the legacy platform and compiler preset matrix with a shared reference configure, build, and smoke-test contract.
Route Windows and fast-build entry points through the reference output tree while retaining focused diagnostic presets and the known Windows
smoke-test exclusion.
* ci: target pull requests at main
* fix: harden CDT moves and release verification
- enforce causal 2-to-3 proposals and implement failure-atomic 4-to-4
moves with checked CGAL primitives
- preserve manifold settings, validate runtime bounds, and prevent move
counters from carrying across runs
- make sanitizer, CodeQL, Codecov, and cross-platform CI failures
actionable
- add locked Python 3.12 quality tooling and retire PVS-Studio
* ci: restore Just setup and C++ formatting checks
Correct the immutable action pin used to install Just and align the
reported C++ files with clang-format 18.
* fix!: harden 3D moves and stabilize release validation
- make rejected moves failure-atomic and implement the causal 6→2 retriangulation
- correct 6→2 Metropolis action bookkeeping and add cdt --no-output
- consolidate LLVM 22 formatting, clang-tidy, sanitizer, and quality workflows
- preserve compatible CMake and vcpkg caches across incremental builds
- remove cdt-opt, Valgrind integration, and unsupported 4D scaffolding
- document the maintenance-mode release workflow
BREAKING CHANGE: Remove the cdt-opt executable and unsupported 4D manifold, geometry, move, and cell-type APIs.
* ci: make fresh runner setup reliable
- allow clean builds to proceed when no CMake cache exists
- reuse pinned vcpkg checkouts containing generated artifacts
- install the pinned zizmor version before repository quality checks
* refactor(tooling): remove cppcheck integration
Remove the cppcheck workflow, CMake preset, local runner, CodeRabbit
configuration, and documentation references.
---------



Update to c++23.
Summary by CodeRabbit
New Features
Bug Fixes
tl-expectedlibrary, streamlining project dependencies.Documentation