X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=CONTRIBUTING.adoc;h=7052f2e8e232714565579f60112f8462bf20c195;hb=6d1a2dc7634b6a59b098d4b58150583a0e5428d5;hp=b9f26eb11bb5c626cbb40e5b3dfe380156fad028;hpb=fb7ff115d1c09334777a2cca347555765f3ce172;p=babeltrace.git 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