[Libreoffice-commits] core.git: solenv/clang-format

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Wed Aug 5 09:52:31 UTC 2020


 solenv/clang-format/reformat-formatted-files |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 786802539587f2fe08ef57443e58af50146db33b
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Aug 5 10:47:58 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Aug 5 11:51:44 2020 +0200

    Propagate clang-format failure from reformat-formatted-files
    
    Specifically, this allows to manually terminate a (long-running)
    reformat-formatted-files through Ctrl-C.
    
    Change-Id: Ic44099b29e72619a6697d349a611a12b8536a3bf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100154
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
    Tested-by: Jenkins

diff --git a/solenv/clang-format/reformat-formatted-files b/solenv/clang-format/reformat-formatted-files
index 0302d3f9b244..a3a670f83a77 100755
--- a/solenv/clang-format/reformat-formatted-files
+++ b/solenv/clang-format/reformat-formatted-files
@@ -42,7 +42,7 @@ foreach my $filename (@filenames)
     print($filename . "\n");
     if (!$dry_run)
     {
-        system($command);
+        system($command) == 0 or die "failed to execute \"$command\": $?";
     }
 }
 


More information about the Libreoffice-commits mailing list