-
Notifications
You must be signed in to change notification settings - Fork 4
Enable linkage #25
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
Enable linkage #25
Conversation
Caution Review failedThe pull request is closed. WalkthroughThe Changes
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 as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- include/cppcore/Memory/MemUtils.h (2 hunks)
Additional comments not posted (4)
include/cppcore/Memory/MemUtils.h (4)
44-44
: Export declaration added for cross-platform compatibility.The
DLL_CPPCORE_EXPORT
macro has been correctly added to the class declaration to enable linkage for different platforms.
53-53
: New member functions and default constructors/destructors added.The addition of
isAligned
andalignPtr
functions, along with default constructors and destructors, enhances the utility of the class for memory alignment tasks. These additions are consistent with the PR objectives and are well-implemented.Also applies to: 63-63, 67-67
53-60
: Review of new member functions for alignment.The
isAligned
andalignPtr
functions are crucial for memory alignment checks and adjustments. The implementation appears correct and efficient, using bitwise operations for alignment checks and adjustments.
63-67
: Default constructor and destructor.The use of default constructors and destructors is a good practice in modern C++ to ensure that the compiler-generated versions are appropriate, which is especially useful for classes that do not manage resources directly.
Fix review finding
Summary by CodeRabbit
New Features
MemUtils
class with additional memory operation functions (alignPtr
andisAligned
).Improvements
MemUtils
class to streamline object initialization and cleanup.