1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2026-06-20 01:17:49 +02:00

Update uncrustify to recognize .c.inc files.

But ignore .auto.c.inc and .vendor.c.inc files.
This commit is contained in:
David Steele
2026-02-19 22:33:05 +07:00
parent 1ce2522e35
commit 119c089ccc
+4 -4
View File
@@ -542,7 +542,7 @@ eval
foreach my $strFile (sort(keys(%{$hManifest})))
{
# Skip non-C files
next if $hManifest->{$strFile}{type} ne 'f' || ($strFile !~ /\.c$/ && $strFile !~ /\.h$/);
next if $hManifest->{$strFile}{type} ne 'f' || ($strFile !~ /\.c.inc$/ && $strFile !~ /\.c$/ && $strFile !~ /\.h$/);
# Skip files that do are not version controlled
next if !defined($hRepoManifest->{$strFile});
@@ -551,9 +551,9 @@ eval
next if
# Does not format correctly because it is a template
$strFile eq 'test/src/test.c' ||
# Contains code copied directly from PostgreSQL
$strFile eq 'src/postgres/interface/static.vendor.h' ||
$strFile eq 'src/postgres/interface/version.vendor.h';
# Skip vendorized and automatically generated files
$strFile =~ /\.vendor\.h$/ ||
$strFile =~ /\.(vendor|auto)\.c\.inc$/;
$strCommand .= " ${strBackRestBase}/${strFile}";
}