From 4c716ada50c506652e407a2818bfb3f8ac00014c Mon Sep 17 00:00:00 2001 From: Rot127 Date: Tue, 30 Apr 2024 01:49:30 -0500 Subject: [PATCH] Change test --- .github/workflows/clang-tidy.yml | 2 ++ cs.c | 2 ++ run-clang-tidy.sh | 7 ++++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index 95d29cd5a9..32a0a595cf 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -13,6 +13,8 @@ jobs: name: clang-tidy steps: - uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Install clang-tidy run: | sudo apt install clang-tidy diff --git a/cs.c b/cs.c index 65f89b8e5b..6da1f5a589 100644 --- a/cs.c +++ b/cs.c @@ -32,6 +32,8 @@ #pragma message(CAPSTONE_MSVC_WRANING_PREFIX "Windows driver does not support full features for selected architecture(s). Define CAPSTONE_DIET to compile Capstone with only supported features. See issue #681 for details.") +// Some change + #undef CAPSTONE_MSVC_WRANING_PREFIX #undef CAPSTONE_STR #undef CAPSTONE_STR_INTERNAL diff --git a/run-clang-tidy.sh b/run-clang-tidy.sh index 02dab2722f..46a71e3f3a 100755 --- a/run-clang-tidy.sh +++ b/run-clang-tidy.sh @@ -16,7 +16,12 @@ top_level=$(git rev-parse --show-toplevel) echo "\n\n###### REPORT\n\n" git pull origin next -changed_files=$(git diff --name-only origin/next) +if [ $? -ne 0 ]; then + echo "Failed to pull origin/next." + exit 1 +fi + +changed_files=$(git diff --name-only origin/next HEAD) if [ $? -ne 0 ]; then echo "Failed to get changed files." exit 1