Skip to content

Commit

Permalink
Add check for C++-style comments
Browse files Browse the repository at this point in the history
Also fix a single instance in sortedarray.h.
  • Loading branch information
fragglet committed Dec 11, 2024
1 parent 76cc8aa commit 8c1158e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ jobs:
echo
false
fi
- name: Check comment style
run: |
if grep " //" */*.[ch]; then
echo
echo "*** C++-style comments were detected in the above lines."
echo "*** Please change to use /* ... */ -style comments."
echo
false
fi
build_and_coverage:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion src/sortedarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@ void sortedarray_clear(SortedArray *sortedarray);
}
#endif

#endif // #ifndef ALGORITHM_SORTEDARRAY_H
#endif /* #ifndef ALGORITHM_SORTEDARRAY_H */

0 comments on commit 8c1158e

Please sign in to comment.