added bounds checking to CArray#40
Conversation
There was a problem hiding this comment.
Copilot reviewed 12 out of 16 changed files in this pull request and generated no comments.
Files not reviewed (4)
- cmake/CMakeBasics.cmake: Language not supported
- cmake/Config.cmake: Language not supported
- hostconfigs/apple/macOS_base.cmake: Language not supported
- src/ShivaConfig.hpp.in: Language not supported
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #40 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 34 36 +2
Lines 1089 1197 +108
==========================================
+ Hits 1089 1197 +108 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Copilot reviewed 16 out of 21 changed files in this pull request and generated 2 comments.
Files not reviewed (5)
- cmake/CMakeBasics.cmake: Language not supported
- cmake/Config.cmake: Language not supported
- cmake/Macros.cmake: Language not supported
- hostconfigs/apple/macOS_base.cmake: Language not supported
- src/ShivaConfig.hpp.in: Language not supported
Comments suppressed due to low confidence (4)
src/common/CArray.hpp:188
- [nitpick] The static_assert message could be clarified to indicate that operator[] performs slicing for multi-dimensional arrays, while for one-dimensional arrays it simply delegates to operator().
static_assert( sizeof...(DIMS) >= 1, "operator[] is only valid for sizeof...(DIMS) > 1" );
src/geometry/mapping/LinearTransform.hpp:171
- [nitpick] Verify that the removal of the 'template' keyword from the supportLoop call is intentional and that it correctly compiles in all dependent contexts.
InterpolatedShape::supportLoop( [&] ( auto const ... ic_spIndices ) constexpr
src/discretizations/unitTests/testParentElement.cpp:120
- [nitpick] Verify that the removal of the 'template' keyword from ParentElementType::value is intentional and does not cause compile issues in all required instantiations.
constexpr double value = ParentElementType::value( coord, TEST_PARENT_ELEMENT_HELPER::fieldValues );
src/common/CArrayHelper.hpp:129
- [nitpick] Review the usage of std::forward with 'INDICES_TYPE const'; ensure that this forwarding is intended and correctly propagates constness in the recursive call.
return index * thisStride + linearIndexHelper< DIMS ... >::template level< INDICES_TYPE ... >( std::forward< INDICES_TYPE const >( indices )... );
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
wrtobin
left a comment
There was a problem hiding this comment.
couple minor things, looks good otherwise
This PR adds bounds checking to the CArray object.