Skip to content

docs: Add C++ guidelines - #8688

Open
kuznetsss wants to merge 4 commits into
XRPLF:developfrom
kuznetsss:Cpp_guidelines
Open

kuznetsss wants to merge 4 commits into
XRPLF:developfrom
kuznetsss:Cpp_guidelines

Conversation

@kuznetsss

Copy link
Copy Markdown
Contributor

High Level Overview of Change

Create a doc with C++ guidelines. Add github copilot instructions to check PR for following the guidelines.

Context of Change

API Impact

  • Public API: New feature (new methods and/or new fields)
  • Public API: Breaking change (in general, breaking changes should only impact the next api_version)
  • libxrpl change (any change that may affect libxrpl or dependents of libxrpl)
  • Peer protocol change (must be backward compatible or bump the peer protocol version)

@kuznetsss
kuznetsss requested a review from a team as a code owner November 4, 2026 17:56
@kuznetsss kuznetsss changed the title doc: Create C++ guidelines docs: Create C++ guidelines Nov 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The namespace guideline must distinguish implementation-only helpers from out-of-class template member definitions, since moving the latter into xrpl::detail would break compilation.

1 open issue
What changed in this PR

This documentation-only PR centralizes C++ guidance for contributors and adds Copilot review instructions based on those guidelines.

Changes:

  • Adds dedicated C++ guidelines, formatting instructions, and Antithesis contract documentation.
  • Updates contributor and agent documentation to reference the new pages.
  • Adds C++ review instructions, documentation owners, and a spelling-dictionary entry.
File Description
docs/​cpp/​guidelines.md Defines C++ source layout and coding guidelines.
docs/​cpp/​formatting.md Moves formatting guidance into a dedicated page.
docs/​cpp/​antithesis.md Consolidates contract and instrumentation guidance.
CONTRIBUTING.md Links to the new pages and removes former guidance sections.
CODEOWNERS Assigns owners for C++ documentation.
AGENTS.md Updates source-layout and contract documentation links.
.github/​instructions/​cpp.instructions.md Adds C++-specific coding and review instructions.
.cspell.config.yaml Adds a code-owner username to the spelling dictionary.

Review effort: Balanced

Comment thread docs/cpp/guidelines.md Resolved
@kuznetsss kuznetsss changed the title docs: Create C++ guidelines docs: Add C++ guidelines Nov 5, 2026
Comment thread docs/cpp/antithesis.md Resolved
Comment thread docs/cpp/antithesis.md Resolved
Comment thread docs/cpp/antithesis.md Resolved
Comment thread docs/cpp/formatting.md Resolved
Comment thread docs/cpp/formatting.md Resolved
Comment thread docs/cpp/guidelines.md Resolved
Comment thread docs/cpp/guidelines.md Resolved
Comment thread docs/cpp/guidelines.md Resolved
Comment thread CODEOWNERS Resolved
Comment thread CONTRIBUTING.md Resolved
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

This PR has conflicts, please resolve them in order for the PR to be reviewed.

1 similar comment
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

This PR has conflicts, please resolve them in order for the PR to be reviewed.

Comment thread docs/cpp/antithesis.md Resolved
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

All conflicts have been resolved. Assigned reviewers can now start or resume their review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the documentation and review-configuration changes.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@godexsoft godexsoft left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Commented some small things that i'd like to see added/changed 👍

Comment thread docs/cpp/guidelines.md Resolved
Comment thread docs/cpp/guidelines.md Resolved
Comment thread docs/cpp/guidelines.md Resolved
@kuznetsss
kuznetsss requested a review from godexsoft November 12, 2026 14:59
@ximinez ximinez self-assigned this Nov 24, 2026
@kuznetsss kuznetsss added the Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. label Nov 25, 2026
@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

This branch has not been deployed

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

Labels

Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants