From a8a9df74fe4c4283719f520f10e6e4a974b49d5d Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 27 Jan 2022 15:37:42 +0300 Subject: [PATCH] Improve listing of files to be formatted. --- format.ps1 | 2 +- format.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/format.ps1 b/format.ps1 index a1079a34c..ef4f53155 100644 --- a/format.ps1 +++ b/format.ps1 @@ -1,3 +1,3 @@ -./src.ps1 | Select-String -NotMatch "CxCli.h" | Select-String -NotMatch "DotNet" | Select-String -NotMatch "/tl-parser/" | ForEach-Object { +./src.ps1 | Select-String -NotMatch "CxCli.h" | Select-String -CaseSensitive -NotMatch "DotNet" | Select-String -NotMatch "tl/tl_dotnet_object.h" | Select-String -NotMatch "/tl-parser/" | ForEach-Object { clang-format -verbose -style=file -i $_ } diff --git a/format.sh b/format.sh index 2a9a39f94..47d21ee52 100755 --- a/format.sh +++ b/format.sh @@ -1,3 +1,3 @@ #!/bin/sh cd $(dirname $0) -./src.sh | grep -v CxCli.h | grep -iv dotnet | grep -v /tl-parser/ | xargs -n 1 clang-format -verbose -style=file -i +./src.sh | grep -v CxCli.h | grep -v DotNet | grep -v tl/tl_dotnet_object.h | grep -v /tl-parser/ | xargs -n 1 clang-format -verbose -style=file -i