Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .clang-format-ignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# exclude third party code from clang-format checks
# Exclude third party code from clang-format checks.
#
# This file is used by the clang-format-lint-action on Github.
# When updating this list, remember to update Jamulus.pro's CLANG_SOURCES
# as well.
./libs
./windows/nsProcess
2 changes: 2 additions & 0 deletions .github/workflows/coding-style-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ jobs:
- uses: DoozyX/clang-format-lint-action@2a28e3a8d9553f244243f7e1ff94f6685dff87be
with:
clangFormatVersion: 10
# When updating the extension list, remember to update
# Jamulus.pro's CLANG_SOURCES as well.
extensions: 'cpp,h'
7 changes: 7 additions & 0 deletions Jamulus.pro
Original file line number Diff line number Diff line change
Expand Up @@ -1169,3 +1169,10 @@ contains(CONFIG, "disable_version_check") {

ANDROID_ABIS = armeabi-v7a arm64-v8a x86 x86_64

# Enable formatting all code via `make clang_format`.
# Note: When extending the list of file extensions or when changing the excludes,
# be sure to update .github/workflows/coding-style-check.yml and .clang-format-ignore as well.
CLANG_SOURCES = $$files(*.cpp, true) $$files(*.h, true)
CLANG_SOURCES ~= s!^\(libs/|moc_|ui_|windows/nsProcess/|src/res/qrc_resources\.cpp\)\S*$!!g
clang_format.commands = 'clang-format -i $$CLANG_SOURCES'
QMAKE_EXTRA_TARGETS += clang_format