From: Ralph Giles Date: Mon, 25 Sep 2017 22:58:41 +0000 (-0700) Subject: Add build flags for YouCompleteMe. X-Git-Tag: v1.3.6~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=8ef0f8058854b2ef55d2d42bbe84487a9aadae12;p=platform%2Fupstream%2Flibvorbis.git Add build flags for YouCompleteMe. Add a .ycm_extra.conf.py script to return the same CFLAGS we pass for `make debug`. These are passed to libclang so symbol lookup works correctly. Note this doesn't pick up changes to the build config, including non-default locations for the ogg headers, but it's better than nothing. --- diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py new file mode 100644 index 0000000..f4e30e8 --- /dev/null +++ b/.ycm_extra_conf.py @@ -0,0 +1,8 @@ +def FlagsForFile(filename, **kwargs): + return { + 'flags': [ + '-x', 'c', + '-g', '-Wall', '-Wextra', + '-D_REENTRANT', '-D__NO_MATH_INLINES', '-fsigned-char' + ], + }