add new format make target
This commit is contained in:
committed by
Dmitry Podgorny
parent
abd1b08a97
commit
2e21d5a021
@@ -77,6 +77,7 @@ noinst_HEADERS = strophepp.h
|
|||||||
pkgconfig_DATA = libstrophe.pc
|
pkgconfig_DATA = libstrophe.pc
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
|
_clang-format \
|
||||||
Doxyfile \
|
Doxyfile \
|
||||||
GPL-LICENSE.txt \
|
GPL-LICENSE.txt \
|
||||||
LICENSE.txt \
|
LICENSE.txt \
|
||||||
@@ -203,3 +204,8 @@ tests_test_stanza_SOURCES = tests/test_stanza.c
|
|||||||
tests_test_stanza_CFLAGS = $(STROPHE_FLAGS)
|
tests_test_stanza_CFLAGS = $(STROPHE_FLAGS)
|
||||||
tests_test_stanza_LDADD = $(STROPHE_LIBS)
|
tests_test_stanza_LDADD = $(STROPHE_LIBS)
|
||||||
tests_test_stanza_LDFLAGS = -static
|
tests_test_stanza_LDFLAGS = -static
|
||||||
|
|
||||||
|
format:
|
||||||
|
@echo " * run clang-format on all sources"
|
||||||
|
@dos2unix -q src/*.[ch] *.h tests/*.[ch] examples/*.c
|
||||||
|
@clang-format -i src/*.[ch] *.h tests/*.[ch] examples/*.c
|
||||||
|
|||||||
17
_clang-format
Normal file
17
_clang-format
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
AlignConsecutiveAssignments: 'false'
|
||||||
|
AlignEscapedNewlines: Left
|
||||||
|
AllowShortBlocksOnASingleLine: 'true'
|
||||||
|
AllowShortFunctionsOnASingleLine: Empty
|
||||||
|
AllowShortIfStatementsOnASingleLine: 'false'
|
||||||
|
BinPackParameters: 'false'
|
||||||
|
BreakBeforeBraces: Linux
|
||||||
|
ColumnLimit: '80'
|
||||||
|
DerivePointerAlignment: 'false'
|
||||||
|
IndentWidth: '4'
|
||||||
|
PointerAlignment: Right
|
||||||
|
SortIncludes: 'false'
|
||||||
|
TabWidth: '4'
|
||||||
|
UseTab: Never
|
||||||
|
|
||||||
|
...
|
||||||
Reference in New Issue
Block a user