Skip to content
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

Refactor source files to move towards latest coding standard: #67

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

LinZhihao-723
Copy link
Member

References

Description

This PR refactors source files to meet our latest coding guidelines.

  • For both C++ and Python files, we now use 100-char limit for comments.
  • For C++, we drop .inc files and move the implementation into the header files.
  • Update C++ header guards to make them consistent with CLP core.

Validation performed

  • Ensure all linters passed.
  • Manually checked the generated doc site is properly rendered.

@LinZhihao-723 LinZhihao-723 requested a review from davidlion July 8, 2024 14:25
Comment on lines 1 to 2
#ifndef CLP_FFI_PY_IR_EXCEPTION_FFI
#define CLP_FFI_PY_IR_EXCEPTION_FFI
Copy link
Member

@davidlion davidlion Jul 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change seems incorrect no? (same with the endif)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm right, mb

Copy link
Member

@davidlion davidlion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor source files to move towards latest coding standard:

  • For C++ and Python files, use 100-char limit for comments.
  • For C++, drop .inc files and move the implementations into the header files.
  • Make C++ header guards consistent with CLP core.

@davidlion davidlion changed the title Refactor C++ and Python source files to meet latest coding standard. Refactor source files to move towards latest coding standard: Jul 8, 2024
@davidlion davidlion merged commit 36e08a3 into y-scope:main Jul 8, 2024
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants