From def42a41fc4e7c31f7b6e44b9f88d4e6fb3202da Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 5 Dec 2014 04:38:28 -0500 Subject: [PATCH] adding ycm config --- .ycm_extra_conf.py | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .ycm_extra_conf.py diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py new file mode 100644 index 0000000..e01650d --- /dev/null +++ b/.ycm_extra_conf.py @@ -0,0 +1,52 @@ +########################################################################## +# Simple ycm_extra_conf.py example # +# Copyright (C) <2013> Onur Aslan # +# # +# This file is loaded by default. Place your own .ycm_extra_conf.py to # +# project root to override this. # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +########################################################################## + + +flags = [ +'-g', +'-Wall', +'-O3', +'-std=c99', +'-D_POSIX_SOURCE', +'-D_GNU_SOURCE', +'-I/usr/include/glib-2.0', +'-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', +'-pthread', +'-I/usr/include/glib-2.0', +'-I/usr/lib/x86_64-linux-gnu/glib-2.0/include', +'-I/usr/include/mysql', +'-DBIG_JOINS=1', +'-fno-strict-aliasing', +'-g', +'-DNDEBUG', +'-pthread', + +'-x', 'c' +] + +# youcompleteme is calling this function to get flags +# You can also set database for flags. Check: JSONCompilationDatabase.html in +# clang-3.2-doc package +def FlagsForFile( filename ): + return { + 'flags': flags, + 'do_cache': True + }