Skip to content

Commit

Permalink
chore: Unify .clang-format file (Chatterino#5037)
Browse files Browse the repository at this point in the history
* chore: Unify all .clang-format files in the root dir

* Update `scripts/check-format.sh` to include all source dirs

* Add changelog entry
  • Loading branch information
pajlada authored Dec 17, 2023
1 parent 0395b69 commit 269e7a0
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 157 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
- Dev: Move `clang-tidy` checker to its own CI job. (#4996)
- Dev: Refactored the Image Uploader feature. (#4971)
- Dev: Fixed deadlock and use-after-free in tests. (#4981)
- Dev: Moved all `.clang-format` files to the root directory. (#5037)
- Dev: Load less message history upon reconnects. (#5001, #5018)
- Dev: Load less message history upon reconnects. (#5001)
- Dev: BREAKING: Replace custom `import()` with normal Lua `require()`. (#5014)
Expand Down
52 changes: 0 additions & 52 deletions mocks/.clang-format

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/check-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ while read -r file; do
echo "$file differs!!!!!!!"
fail="1"
fi
done < <(find src/ -type f \( -iname "*.hpp" -o -iname "*.cpp" \))
done < <(find src/ tests/src benchmarks/src mocks/include -type f \( -iname "*.hpp" -o -iname "*.cpp" \))

if [ "$fail" = "1" ]; then
echo "At least one file is poorly formatted - check the output above"
Expand Down
52 changes: 0 additions & 52 deletions src/.clang-format

This file was deleted.

52 changes: 0 additions & 52 deletions tests/.clang-format

This file was deleted.

0 comments on commit 269e7a0

Please sign in to comment.