Merge pull request #693 from tasn/master

Fixed usage of database file in example .ycm_extra_conf.py.
This commit is contained in:
Val Markovic 2013-11-27 10:14:23 -08:00
commit c0a349a700

View File

@ -92,7 +92,7 @@ flags = [
# 'flags' list of compilation flags. Notice that YCM itself uses that approach.
compilation_database_folder = ''
if compilation_database_folder:
if os.path.exists( compilation_database_folder ):
database = ycm_core.CompilationDatabase( compilation_database_folder )
else:
database = None