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 ):
|
def FlagsForFile( filename ):
|
||||||
if database:
|
if database:
|
||||||
working_directory = database.CompileCommandWorkingDirectoryForFile(
|
# Bear in mind that compilation_info.compiler_flags_ does NOT return a
|
||||||
filename )
|
# python list, but a "list-like" StringVec object
|
||||||
# Bear in mind that database.FlagsForFile does NOT return a python list, but
|
|
||||||
# a "list-like" StringVec object
|
|
||||||
compilation_info = database.GetCompilationInfoForFile( filename )
|
compilation_info = database.GetCompilationInfoForFile( filename )
|
||||||
final_flags = PrepareClangFlags(
|
final_flags = PrepareClangFlags(
|
||||||
MakeRelativePathsInFlagsAbsolute(
|
MakeRelativePathsInFlagsAbsolute(
|
||||||
|
Loading…
Reference in New Issue
Block a user