-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix extra lines generated when using clad::array or array_ref #797
Conversation
clang-tidy review says "All clean, LGTM! 👍" |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #797 +/- ##
==========================================
+ Coverage 94.87% 94.89% +0.01%
==========================================
Files 49 49
Lines 7478 7478
==========================================
+ Hits 7095 7096 +1
+ Misses 383 382 -1 |
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
include/clad/Differentiator/Array.h
Outdated
@@ -102,16 +109,16 @@ template <typename T> class array { | |||
/// Returns the size of the underlying array | |||
CUDA_HOST_DEVICE std::size_t size() const { return m_size; } | |||
/// Returns the ptr of the underlying array | |||
CUDA_HOST_DEVICE T* ptr() const { return m_arr; } | |||
CUDA_HOST_DEVICE T*& ptr_ref() { return m_arr; } | |||
CUDA_HOST_DEVICE T* ptr() const PUREFUNC { return m_arr; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CUDA_HOST_DEVICE T* ptr() const PUREFUNC { return m_arr; } | |
CUDA_HOST_DEVICE PUREFUNC T* ptr() const { return m_arr; } |
Can we move the attributes to go first?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed 👍🏼
clang-tidy review says "All clean, LGTM! 👍" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! Thank you!
fixes #350