Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Other top-level areas:

Follow these project docs instead of duplicating their contents:

- `docs/CodeStyle.md` for C/C++ formatting and naming.
- `docs/CodeStyle.md` for C/C++ formatting, naming, and comment style.
- `docs/LoggingStyle.md` for log levels and message style.
- `docs/OptimizationStyle.md` for performance-sensitive changes.
- `REVIEW.md` for UCX pull-request review checks and comment style.
10 changes: 10 additions & 0 deletions docs/CodeStyle.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
* Use `ucs_assert*` for internal invariants, not user-input validation.


## Comments
* Usually one line; use more only for a non-obvious or complex point, or
per the `## Doxygen` section below.
* Document `why` not `what`; no PR/issue references, no dev-process
Comment thread
tvegas1 marked this conversation as resolved.
Outdated
Comment thread
tvegas1 marked this conversation as resolved.
Outdated
narration.
* Document once, in the most relevant area.
* Explain locking, ownership, tradeoffs, or step-by-step processing when
non-obvious.


## Naming convention:
* Lower case, underscores
* Names must begin with ucp_/uct_/ucs_/ucm_
Expand Down