add format_sources for kdevelop

Usage: Settings -> Configure KDevelop -> Source Formatter -> C++ ; Custom Script Formatter ; Kdevelop: kdev_format_source
This commit is contained in:
proller 2017-03-13 20:30:52 +03:00 committed by alexey-milovidov
parent 1d33bd8ef6
commit 1436f09a2a

2
format_sources Normal file
View File

@ -0,0 +1,2 @@
# Settings -> Configure KDevelop -> Source Formatter -> C++ ; Custom Script Formatter ; Kdevelop: kdev_format_source
*.cpp *.c *.h : mv $TMPFILE $TMPFILE.tmp; cat $TMPFILE.tmp | clang-format -style=file -assume-filename=`pwd`/.clang-format > $TMPFILE