From a33cad9d1738a39e83916d7d928a1ec7e0662f48 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sun, 11 Jun 2017 01:49:19 +0200 Subject: Improved my minimal ycm_extra_conf.py (pep8) --- ycm_extra_conf.py | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'ycm_extra_conf.py') diff --git a/ycm_extra_conf.py b/ycm_extra_conf.py index 092887d..7a1828f 100644 --- a/ycm_extra_conf.py +++ b/ycm_extra_conf.py @@ -1,13 +1,21 @@ def FlagsForFile(filename, **kwargs): return { 'flags': [ - '-x', - 'c', - '-isystem', - '/usr/include', - '-isystem', - '-isystem', - '-I', - '.', + '-Wall', + '-Wextra', + '-Werror', + '-Wno-long-long', + '-Wno-variadic-macros', + '-fexceptions', + '-ferror-limit=10000', + '-DNDEBUG', + '-std=c99', + '-x', 'c', + '-D_GNU_SOURCE', + '-I.', + '-I', '/usr/include/' ], + 'do_cache': True, } + +# vim:set et sw=4 ts=4 tw=120: -- cgit v1.2.3