X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=CONTRIBUTING.adoc;h=7052f2e8e232714565579f60112f8462bf20c195;hp=b9f26eb11bb5c626cbb40e5b3dfe380156fad028;hb=b61d54652477503ef2b058fd8304e6c16cd5cef8;hpb=5a8810d2f355e27381bebb9fcb6e1e254828dfdf diff --git a/CONTRIBUTING.adoc b/CONTRIBUTING.adoc index b9f26eb1..7052f2e8 100644 --- a/CONTRIBUTING.adoc +++ b/CONTRIBUTING.adoc @@ -1689,7 +1689,14 @@ file. To automatically format all the project's {cpp} files, run: ---- -$ find -iname '*.cpp' -o -iname '*.hpp' -exec clang-format -i '{}' ';' +$ ./tools/format-cpp +---- + +Use the `FORMATTER` environment variable to override the default +formatter (`clang-format{nbsp}-i`): + +---- +$ FORMATTER='clang-format-10 -i' ./tools/format-cpp ---- ==== Naming