Skip to content

Add CLAUDE.md with guidance for developers and AI assistants - #56

Open
nigels-com wants to merge 2 commits into
boostorg:developfrom
nigels-com:claude-md
Open

nigels-com wants to merge 2 commits into
boostorg:developfrom
nigels-com:claude-md

Conversation

@nigels-com

Copy link
Copy Markdown
Collaborator

Document what the library is and how the repository is laid out, so contributors (human or AI) can get oriented without reading the 3000-line base.hpp first.

Document what the library is and how the repository is laid out, so
contributors (human or AI) can get oriented without reading the
3000-line base.hpp first.

Covers:
- the two containers, and the hard requirements for C++03 support and
  backward compatibility
- what each header, test file and build file is for, including the
  CB_CONTAINER / common.ipp pattern and Jamfile.v2 as the list of tests
- how the code works: the storage pointers and wrapping arithmetic, the
  shared iterator template, BOOST_CB_ENABLE_DEBUG and BOOST_CB_TEST, the
  internal macros undefined at the end of circular_buffer.hpp, and how
  Boost.Move, allocator_access and BOOST_TRY are used
- conventions: C++03 only with Boost.Config macros, minimal dependencies
  kept in sync across CMake and b2, self-contained headers, formatting,
  complete Doxygen sections on public API, the same API on both
  containers, and keeping the Quickbook snippet markers in the examples
- testing: the lightweight_test pattern, what a change should be tested
  against, the b2 command CI uses, and a standalone build loop
- git workflow: PRs target develop, and formatting changes go in their
  own commits
Describe how the documentation is built and maintained. Nothing in CI
exercises the docs, so problems such as a broken import or snippet
marker only appear when the release docs are built.

Covers:
- the toolchain (Quickbook, Doxygen and BoostBook, AutoIndex,
  BoostBook XSL) and the source each stage reads
- where content lives: reference docs in the header comments, the
  narrative and release notes in circular_buffer.qbk, and code samples
  imported from the examples by their snippet markers
- what a change needs: updated header comments, a release-notes entry,
  and new examples added to both example/jamfile.v2 and the .qbk
- how to build the HTML and PDF from a superproject checkout, and the
  tools and user-config.jam this requires
- known issues: no doc build in CI, release notes that stop at Boost
  1.56, the obsolete Trac section, and a Doxygen macro list that lacks
  BOOST_NOEXCEPT but still has entries copied from Boost.Units
@nigels-com nigels-com added this to the boost 1.94.0 milestone Nov 29, 2026
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.

1 participant