Fixing the database-using example code
This commit is contained in:
parent
96bee8a025
commit
7fc3c47101
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user