File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ BasedOnStyle : LLVM
2+ Language : Cpp
3+
4+ IndentWidth : 4
5+ ContinuationIndentWidth : 8
6+
7+ ColumnLimit : 120
8+
9+ MaxEmptyLinesToKeep : 2
10+
11+ AllowShortFunctionsOnASingleLine : Empty
12+ AlwaysBreakBeforeMultilineStrings : true
Original file line number Diff line number Diff line change @@ -8,3 +8,15 @@ ChangeLog:
88AUTHORS : ChangeLog
99 ( echo " Authors and contributors, in alphabetical order: " ; echo ; \
1010 sed -r " s/^Author: (.*)/\1/;t;d" $< | sort -u ) > $@
11+
12+ if HAVE_CLANG_FORMAT
13+
14+ .PHONY : reformat
15+
16+ reformat :
17+ @echo " Reformatting header files..."
18+ @CLANG_FORMAT@ -style=file -i ` find . -name " *.h" `
19+ @echo " Reformatting C files..."
20+ @CLANG_FORMAT@ -style=file -i ` find . -name " *.c" `
21+
22+ endif
Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ AC_CONFIG_SRCDIR([src/igmpproxy.c])
55AC_CONFIG_HEADERS ( [ config.h] )
66AC_PROG_CC_C99
77
8+ AC_CHECK_PROGS (
9+ [ CLANG_FORMAT] , [ clang-format clang-format-4.0 clang-format-3.9] ,
10+ [ AC_MSG_ERROR ( [ clang-format was not not found during configure.] ) ]
11+ )
12+ AM_CONDITIONAL([ HAVE_CLANG_FORMAT] , [ test -n "$CLANG_FORMAT"] )
13+
814AC_CANONICAL_HOST
915case $host_os in
1016 linux*|uclinux*) os=linux;;
You can’t perform that action at this time.
0 commit comments