From ac4d5cf0acd3b2c10f82da788ddc0ab08f13c138 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Mon, 30 Oct 2023 14:12:41 -0400 Subject: [PATCH] tools/format-cpp: add `.sh` extension to identify it Signed-off-by: Philippe Proulx Change-Id: Ifb57e0a26a4d7a2da99bd74fdf24d8aadcec4cf6 Reviewed-on: https://review.lttng.org/c/babeltrace/+/11173 --- CONTRIBUTING.adoc | 6 +++--- Makefile.am | 2 +- tools/{format-cpp => format-cpp.sh} | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename tools/{format-cpp => format-cpp.sh} (100%) diff --git a/CONTRIBUTING.adoc b/CONTRIBUTING.adoc index d5241ff4..268c4445 100644 --- a/CONTRIBUTING.adoc +++ b/CONTRIBUTING.adoc @@ -1680,20 +1680,20 @@ You need clang-format{nbsp}15 to use the project's `.clang-format` file. To automatically format all the project's {cpp} files, run: ---- -$ ./tools/format-cpp +$ ./tools/format-cpp.sh ---- Pass a directory path to only format the {cpp} files it contains: ---- -$ ./tools/format-cpp ./src/cli +$ ./tools/format-cpp.sh ./src/cli ---- Use the `FORMATTER` environment variable to override the default formatter (`clang-format{nbsp}-i`): ---- -$ FORMATTER='my-clang-format-15 -i' ./tools/format-cpp +$ FORMATTER='my-clang-format-15 -i' ./tools/format-cpp.sh ---- ==== Naming diff --git a/Makefile.am b/Makefile.am index 642466fa..b3a5f29c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -26,5 +26,5 @@ EXTRA_DIST = \ LICENSES/LGPL-2.1 \ LICENSES/MIT \ std-ext-lib.txt \ - tools/format-cpp \ + tools/format-cpp.sh \ version diff --git a/tools/format-cpp b/tools/format-cpp.sh similarity index 100% rename from tools/format-cpp rename to tools/format-cpp.sh -- 2.34.1