Fixing the database-using example code

This commit is contained in:
Strahinja Val Markovic 2013-01-24 19:18:09 -08:00
parent 96bee8a025
commit 7fc3c47101

View File

@ -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(