|
|
|
@ -9,6 +9,15 @@ from clang_helpers import PrepareClangFlags |
|
|
|
# 'flags' list of compilation flags. Notice that YCM itself uses that approach. |
|
|
|
compilation_database_folder = '' |
|
|
|
|
|
|
|
repl_tmpl = '((x)[a]?((x)[b]+!):0)' |
|
|
|
csh_lookup_str = '!' |
|
|
|
|
|
|
|
for num in range(30): |
|
|
|
t_str = repl_tmpl.replace('a', str(num)).replace('b', str(num+1)) |
|
|
|
csh_lookup_str = csh_lookup_str.replace('!', t_str) |
|
|
|
|
|
|
|
csh_lookup_str = csh_lookup_str.replace('!', '0') |
|
|
|
|
|
|
|
# These are the compilation flags that will be used in case there's no |
|
|
|
# compilation database set. |
|
|
|
flags = [ |
|
|
|
@ -31,6 +40,8 @@ flags = [ |
|
|
|
'-DWITH_IPTABLES_OPTION', |
|
|
|
'-DWITH_TRANSCODING', |
|
|
|
'-DHAVE_BCG729', |
|
|
|
'-D__csh_lookup(x)=str_hash(x)', |
|
|
|
'-DCSH_LOOKUP(x)=' + csh_lookup_str, |
|
|
|
'-O2', |
|
|
|
'-fstack-protector', |
|
|
|
'--param=ssp-buffer-size=4', |
|
|
|
|