TT#14008 improve pseudo string hash for YCM

Change-Id: I405694b3ea3b3c71a4414fe66383aa05275d171d
mika/coverity
Richard Fuchs 3 years ago
parent f1d37e9c93
commit 00438148ae

@ -9,11 +9,11 @@ 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)'
repl_tmpl = '((x)[a]?(((x)[a]<<a)^!):0)'
csh_lookup_str = '!'
for num in range(30):
t_str = repl_tmpl.replace('a', str(num)).replace('b', str(num+1))
t_str = repl_tmpl.replace('a', str(num))
csh_lookup_str = csh_lookup_str.replace('!', t_str)
csh_lookup_str = csh_lookup_str.replace('!', '0')

Loading…
Cancel
Save