Skip to content

Commit

Permalink
Merge pull request #96 from cwpearson/docs/clang-format
Browse files Browse the repository at this point in the history
docs: how to run clang-format in podman
  • Loading branch information
cwpearson authored Jun 19, 2024
2 parents 4f1ddaf + 65c3a5e commit e314fb6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,22 @@ Such changes should always be made in consultation with the core development tea
Code Formatting
---------------

All code shall be formatted by clang-format 8:
All code shall be formatted by clang-format 14:

.. code-block:: bash
shopt -s globstar
clang-format-14 -i {src,unit_tests,perf_tests}/**/*.[ch]pp
Alternatively, you can use docker/podman: (expects $PWD to be the kokkos-comm tree)

.. code-block:: bash
shopt -s globstar
podman run -v $PWD:/src xianpengshen/clang-tools:14 clang-format -i {src,unit_tests,perf_tests}/**/*.[ch]pp
Behavioral Expectations
-----------------------

Expand Down

0 comments on commit e314fb6

Please sign in to comment.