Skip to content

Conversation

@michal-shalev
Copy link
Contributor

@michal-shalev michal-shalev commented Dec 18, 2025

What?

Expand CodeStyle.md with comprehensive naming conventions, formatting rules, and documentation standards aligned with .clang-format settings.

Why?

The original style guide was minimal and lacked clarity on key conventions like:

  • Detailed naming rules (functions, constants, enums, file names)
  • Formatting specifics (line length, indentation, braces, parentheses, pointers, switch statements)
  • File organization (SPDX headers, header guards)
  • Comment styles (Doxygen vs regular comments)

This created ambiguity for contributors and made it difficult to enforce consistent style.

How?

Added detailed sections for naming conventions, file organization, formatting (aligned with .clang-format), and comments (Doxygen). Updated all code examples to use lower camel case consistently.

@michal-shalev michal-shalev self-assigned this Dec 18, 2025
@michal-shalev michal-shalev requested a review from a team as a code owner December 18, 2025 11:06
@copy-pr-bot
Copy link

copy-pr-bot bot commented Dec 18, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions
Copy link

👋 Hi michal-shalev! Thank you for contributing to ai-dynamo/nixl.

Your PR reviewers will review your contribution then trigger the CI to test your changes.

🚀

Signed-off-by: Michal Shalev <[email protected]>
* Namespaces (e.g., `namespace nixl_utils`)
* Type aliases with `_t` suffix (e.g., `using test_params_t = std::vector<int>`)
* Enum class names with `_t` suffix (e.g., `enum class status_t`)
* Constants - `const` and `constexpr` variables (e.g., `constexpr int default_port = 8080`)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it would be better to add global variables instead.

};

// Initialize connection state (regular comment, not documentation)
auto state = ConnectionState::DISCONNECTED;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
auto state = ConnectionState::DISCONNECTED;
auto state = connection_state_t::DISCONNECTED;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants