-
Notifications
You must be signed in to change notification settings - Fork 3
Struct refactor #5
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
Conversation
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.
Pull Request Overview
This PR refactors the struct handling code by moving it into a dedicated structs
module and improving the code organization. The refactor introduces a new StructType
class to encapsulate struct-related functionality and replaces the previous dictionary-based approach with object-oriented design.
- Moved struct processing code from
structs_pass.py
tostructs/structs_pass.py
- Created new
StructType
class to replace dictionary-based struct representation - Updated all references throughout the codebase to use the new
StructType
interface
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
pythonbpf/structs_pass.py | Deleted - moved to structs/ subdirectory |
pythonbpf/structs/structs_pass.py | New modular struct processing with improved error handling and logging |
pythonbpf/structs/struct_type.py | New StructType class encapsulating struct operations |
pythonbpf/functions_pass.py | Updated to use new StructType interface |
pythonbpf/expr_pass.py | Updated to use new StructType interface |
pythonbpf/codegen.py | Updated import path for struct processing |
pythonbpf/bpf_helper_handler.py | Updated to use new StructType interface |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
1899a6c
to
b784ce2
Compare
b784ce2
to
3ded17b
Compare
No description provided.