Skip to content

Commit 1507551

Browse files
committed
Update format check workflow
1 parent 9c7334d commit 1507551

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.github/workflows/check-format.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@ jobs:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
1818

19-
- name: Cache Clang-Format
20-
uses: actions/cache@v4
21-
with:
22-
path: /usr/bin/clang-format
23-
key: ${{ runner.os }}-clang-format-cache
24-
restore-keys: |
25-
${{ runner.os }}-clang-format-cache
26-
2719
- name: Set up Clang-Format
2820
run: |
2921
if ! command -v clang-format &> /dev/null; then
@@ -48,7 +40,7 @@ jobs:
4840
4941
# Check formatting for each file
5042
for file in $files; do
51-
if clang-format -style=file -output-replacements-xml "$file" | grep -q '<replacement '; then
43+
if clang-format -output-replacements-xml "$file" | grep -q '<replacement '; then
5244
echo "Formatting issues found in $file"
5345
formatting_issues=1
5446
fi

include/poll/IFileDescriptor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class CallbackPointer;
99

1010
class IFileDescriptor {
1111
public:
12-
virtual ~IFileDescriptor(){};
12+
virtual ~IFileDescriptor();
1313
virtual void onPollEvent(struct pollfd &pollfd,
1414
CallbackPointer *newCallbackObject,
1515
struct pollfd *newPollfd) = 0;

0 commit comments

Comments
 (0)