Skip to content

Commit

Permalink
Generate .clang_complete
Browse files Browse the repository at this point in the history
For users of https://github.com/Rip-Rip/clang_complete, this allows to
always keep the .clang_complete file in sync with CFLAGS.
  • Loading branch information
gahr authored and flatcap committed Apr 6, 2018
1 parent 6c995c7 commit 32dfd7b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .clang_complete.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@cflags-one-per-line@
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@ po/remove-potcdate.sed
po/remove-potcdate.sin
po/Rules-quot
po/neomutt.pot
.clang_complete

html
2 changes: 1 addition & 1 deletion Makefile.autosetup
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions auto.def
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 32dfd7b

Please sign in to comment.