Skip to content

Commit

Permalink
docs: how to run clang-format in podman
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Jun 18, 2024
1 parent 35929c9 commit 65c3a5e
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 65c3a5e

Please sign in to comment.