Fix: format-cpp: don't pass -i twice to clang-format
[lttng-tools.git] / format-cpp
index a610728f3c86e3fdb7e83238179b058e4a07e85e..d7155b21dd329a39a1dc53ea8e8e7715ca0d9185 100755 (executable)
@@ -46,10 +46,10 @@ if [[ -n "$FORMATTER" ]]; then
        formatter=$FORMATTER
 elif command -v clang-format-$expected_formatter_major_version &> /dev/null; then
        # Try using the expected version of clang-format
-       formatter="clang-format-$expected_formatter_major_version -i"
+       formatter="clang-format-$expected_formatter_major_version"
 else
        # Try using `clang-format` as is
-       formatter='clang-format -i'
+       formatter='clang-format'
 fi
 
 # Try to format files
This page took 0.023244 seconds and 4 git commands to generate.