From 7fc3c47101f817e7e7f1ba057e9a4821e8689798 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Thu, 24 Jan 2013 19:18:09 -0800 Subject: [PATCH] Fixing the database-using example code --- cpp/ycm/.ycm_extra_conf.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cpp/ycm/.ycm_extra_conf.py b/cpp/ycm/.ycm_extra_conf.py index f418f016..bdee870e 100644 --- a/cpp/ycm/.ycm_extra_conf.py +++ b/cpp/ycm/.ycm_extra_conf.py @@ -97,10 +97,8 @@ def MakeRelativePathsInFlagsAbsolute( flags, working_directory ): def FlagsForFile( filename ): if database: - working_directory = database.CompileCommandWorkingDirectoryForFile( - filename ) - # Bear in mind that database.FlagsForFile does NOT return a python list, but - # a "list-like" StringVec object + # Bear in mind that compilation_info.compiler_flags_ does NOT return a + # python list, but a "list-like" StringVec object compilation_info = database.GetCompilationInfoForFile( filename ) final_flags = PrepareClangFlags( MakeRelativePathsInFlagsAbsolute(