Contributing to libc++¶
Please read this document on general rules to contribute to LLVM projects.
Before you start working on any feature, please take a look at the open reviews
to avoid duplicating someone else’s work. You can do that by going to the website
where code reviews are held, Differential,
and clicking on
Libc++ Open Reviews in the sidebar to the left. If you see
that your feature is already being worked on, please consider chiming in instead
of duplicating work!
After branching for an LLVM release:
Update the version number in
When adding or updating feature test macros, you should update the corresponding tests.
To do that, modify
feature_test_macros table in the script
utils/generate_feature_test_macro_components.py, run it, and commit updated files.
When adding a new header to libc++:
Add a test under
test/libcxxthat the new header defines
test/libcxx/algorithms/version.pass.cppfor an example.
python utils/generate_header_tests.py, verify and commit the modifications.
Create a submodule in
include/module.modulemapfor the new header.
include/CMakeLists.txtfile to include the new header.