We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1507551 commit f7228f0Copy full SHA for f7228f0
.github/workflows/check-format.yml
@@ -40,9 +40,21 @@ jobs:
40
41
# Check formatting for each file
42
for file in $files; do
43
- if clang-format -output-replacements-xml "$file" | grep -q '<replacement '; then
+ echo "Checking formatting for file: $file"
44
+
45
+ # Run clang-format and capture the output
46
+ output=$(clang-format -output-replacements-xml "$file")
47
48
+ # Print the output for debugging
49
+ echo "clang-format output for $file:"
50
+ echo "$output"
51
52
+ # Check for formatting issues
53
+ if echo "$output" | grep -q '<replacement '; then
54
echo "Formatting issues found in $file"
55
formatting_issues=1
56
+ else
57
+ echo "No formatting issues found in $file"
58
fi
59
done
60
0 commit comments