X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=CONTRIBUTING.adoc;h=d5241ff4a8d611b924a9713f94116d292059cbc9;hb=3e6740247afd3bf18fa282452f4b5c7fc03f065f;hp=23808c041e61e99dc856f9044a4f2b74fe11a64c;hpb=ed6ecdedb8fc3d055ef2a6858a8370982cb3712d;p=babeltrace.git diff --git a/CONTRIBUTING.adoc b/CONTRIBUTING.adoc index 23808c04..d5241ff4 100644 --- a/CONTRIBUTING.adoc +++ b/CONTRIBUTING.adoc @@ -1683,11 +1683,17 @@ To automatically format all the project's {cpp} files, run: $ ./tools/format-cpp ---- +Pass a directory path to only format the {cpp} files it contains: + +---- +$ ./tools/format-cpp ./src/cli +---- + Use the `FORMATTER` environment variable to override the default formatter (`clang-format{nbsp}-i`): ---- -$ FORMATTER='clang-format-10 -i' ./tools/format-cpp +$ FORMATTER='my-clang-format-15 -i' ./tools/format-cpp ---- ==== Naming