From 73dc8ab4bb24fe84d2e6c66e26ca1bd1be1d55d0 Mon Sep 17 00:00:00 2001 From: keita Date: Sat, 27 Feb 2021 19:27:32 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=8F=E3=83=BC=E3=83=89=E3=82=BF=E3=83=96?= =?UTF-8?q?=E3=81=8C=E6=B7=B7=E3=81=98=E3=81=A3=E3=81=A6=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/validate/includeGuard.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/validate/includeGuard.sh b/tools/validate/includeGuard.sh index a66b80f..cfb7657 100755 --- a/tools/validate/includeGuard.sh +++ b/tools/validate/includeGuard.sh @@ -8,7 +8,7 @@ for f in $(git ls-files | grep -E '^src\/.*\.h$'); do # ファイルパスから正しいインクルードガードの文字列を生成する s1="$(echo "$f" | sed -r 's/^src\///; s/[\/\.-]+/_/g; s/^.*$/\U&/')_" - # ファイルからインクルードガードを読み込む + # ファイルからインクルードガードを読み込む s2=$(grep -Pzo '#ifndef\s+\K\b(\w+)\b(?=\s+#define\s+\b\1\b)' "$f" | tr '\0' '\n') if [ -z "$s2" ]; then