Skip to content

Conversation

whoami730
Copy link
Contributor

@whoami730 whoami730 commented Sep 11, 2025

This PR brings linter and formatter support to pycdc. It has been tried to avoid large code changes as much as possible, however, due to inconsistent formatting, some modifications need to be performed.
Tools used are clang-format and clang-tidy respectively. It is expected that both of these tools exist on the platform.

Changes are primarily in 3 files -

  1. CMakeLists.txt
  2. .clang-format
  3. .clang-tidy

Remaining changes are either formatting or linting fixes.

@whoami730 whoami730 force-pushed the update-project branch 2 times, most recently from b8ef7d5 to ec1086b Compare September 11, 2025 16:58
@@ -0,0 +1,34 @@
BasedOnStyle: LLVM
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Formatting largely follows our existing codebase but can be altered as per needs.

)

# Enable/disable targets/tools
option(ENABLE_CLANG_FORMAT "Provide `format` and `format-check` targets using clang-format" ON)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not tested if these tools are missing.

@whoami730
Copy link
Contributor Author

@zrax @greenozon Can we please have a review of this?

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.

1 participant