[Libreoffice-commits] core.git: solenv/clang-format
Samuel Mehrbrodt
Samuel.Mehrbrodt at cib.de
Thu Nov 30 11:40:08 UTC 2017
solenv/clang-format/ClangFormat.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 51572635f00748e0206844e34ce48d2f1f75acdb
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date: Thu Nov 30 10:34:10 2017 +0100
Detect also clang-format versions 5.0.0+
Change-Id: I651f078c20a1a51d636d359c1118f06b71083e8e
Reviewed-on: https://gerrit.libreoffice.org/45561
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
diff --git a/solenv/clang-format/ClangFormat.pm b/solenv/clang-format/ClangFormat.pm
index 26de82de06e5..1ec19ada2466 100644
--- a/solenv/clang-format/ClangFormat.pm
+++ b/solenv/clang-format/ClangFormat.pm
@@ -109,7 +109,7 @@ sub is_matching_clang_format_version($$)
return 0;
}
- return `'$clang_format' -version` =~ /^clang-format version $version \(tags/;
+ return `'$clang_format' -version` =~ /^clang-format version $version(-\d+)? \(tags/;
}
1;
More information about the Libreoffice-commits
mailing list