From: Pietro Cerutti Date: Fri, 6 Apr 2018 09:10:46 +0000 (+0000) Subject: Generate .clang_complete X-Git-Tag: neomutt-20180512~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32dfd7baf3e7647c9f72a2ca8c84fb614f032ad0;p=neomutt Generate .clang_complete For users of https://github.com/Rip-Rip/clang_complete, this allows to always keep the .clang_complete file in sync with CFLAGS. --- diff --git a/.clang_complete.in b/.clang_complete.in new file mode 100644 index 000000000..9189df5f7 --- /dev/null +++ b/.clang_complete.in @@ -0,0 +1 @@ +@cflags-one-per-line@ diff --git a/.gitignore b/.gitignore index 493297df7..1841f8053 100644 --- a/.gitignore +++ b/.gitignore @@ -93,5 +93,6 @@ po/remove-potcdate.sed po/remove-potcdate.sin po/Rules-quot po/neomutt.pot +.clang_complete html diff --git a/Makefile.autosetup b/Makefile.autosetup index f33e1b72f..c8ebb7a9f 100644 --- a/Makefile.autosetup +++ b/Makefile.autosetup @@ -313,7 +313,7 @@ uninstall: $(UNINSTALL_TARGETS) distclean: clean $(RM) $(DEPFILES) conststrings.c config.h config.log doc/neomutt.1 \ Makefile po/Makefile contrib/Makefile doc/Makefile \ - test/Makefile autosetup/jimsh0 + test/Makefile autosetup/jimsh0 .clang_complete ############################################################################## # include generated dependency files diff --git a/auto.def b/auto.def index b6155c8ca..a97908138 100644 --- a/auto.def +++ b/auto.def @@ -898,6 +898,11 @@ define bindir [get-define BINDIR] define docdir [get-define PKGDOCDIR] make-template doc/neomutt.man doc/neomutt.1 +############################################################################### +# Generate .clang_complete +define cflags-one-per-line [string map {" " "\n"} [get-define CFLAGS]] +make-template .clang_complete.in + ############################################################################### # Print a summary user-notice "Summary of build options: