.ycm_extra_conf.py revision 328b5bc96e452b67ae2eb3dee3a09ff3ce03f662
import os
import ycm_core
from clang_helpers import PrepareClangFlags
flags = [
'-include',
'./config.h',
'-I',
'-I',
'-Wall',
'-Wextra',
'-Werror',
'-Wno-long-long',
'-Wno-variadic-macros',
'-fexceptions',
'-DNDEBUG',
'-DUSE_CLANG_COMPLETER',
'-D_GNU_SOURCE',
'-std=c99',
]
else:
database = None
def DirectoryOfThisScript():
if not working_directory:
return flags
new_flags = []
for path_flag in path_flags:
break
break
if new_flag:
return new_flags
def FlagsForFile(filename):
if database:
else:
return {
'flags': final_flags,
'do_cache': True
}