MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / FlagsForFile

Function FlagsForFile

scripts/linux/ycm_extra_conf.py:130–149  ·  view source on GitHub ↗
( filename, **kwargs )

Source from the content-addressed store, hash-verified

128
129
130def FlagsForFile( filename, **kwargs ):
131 if database:
132 # Bear in mind that compilation_info.compiler_flags_ does NOT return a
133 # python list, but a "list-like" StringVec object
134 compilation_info = GetCompilationInfoForFile( filename )
135 if not compilation_info:
136 return None
137
138 final_flags = MakeRelativePathsInFlagsAbsolute(
139 compilation_info.compiler_flags_,
140 compilation_info.compiler_working_dir_ )
141
142 else:
143 relative_to = DirectoryOfThisScript()
144 final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to )
145
146 return {
147 'flags': final_flags,
148 'do_cache': True
149 }

Callers

nothing calls this directly

Calls 3

DirectoryOfThisScriptFunction · 0.70

Tested by

no test coverage detected