Add clang-format file

People should run `make format` before doing a commit.
Fix https://github.com/profanity-im/profanity/issues/1396
This commit is contained in:
Michael Vetter
2020-07-07 09:42:00 +02:00
parent 87ddb8081e
commit 66f9a6b721
3 changed files with 48 additions and 0 deletions

View File

@@ -237,6 +237,13 @@ core_sources += $(omemo_sources)
unittest_sources += $(omemo_unittest_sources)
endif
all_c_sources = $(core_sources) $(unittest_sources) \
$(pgp_sources) $(pgp_unittest_sources) \
$(otr3_sources) $(otr4_sources) $(otr_unittest_sources) \
$(omemo_sources) $(omemo_unittest_sources) \
$(c_sources) $(python_sources) \
$(main_source)
AM_CFLAGS = @AM_CFLAGS@ -I$(srcdir)/src
bin_PROGRAMS = profanity
@@ -324,3 +331,6 @@ endif
check-unit: tests/unittests/unittests
tests/unittests/unittests
format: $(all_c_sources)
clang-format -i $(all_c_sources)