MCPcopy Create free account
hub / github.com/acl-dev/acl / FlagsForFile

Function FlagsForFile

.ycm_extra_conf.py:159–178  ·  view source on GitHub ↗
( filename, **kwargs )

Source from the content-addressed store, hash-verified

157
158
159def FlagsForFile( filename, **kwargs ):
160 if database:
161 # Bear in mind that compilation_info.compiler_flags_ does NOT return a
162 # python list, but a "list-like" StringVec object
163 compilation_info = GetCompilationInfoForFile( filename )
164 if not compilation_info:
165 return None
166
167 final_flags = MakeRelativePathsInFlagsAbsolute(
168 compilation_info.compiler_flags_,
169 compilation_info.compiler_working_dir_ )
170
171 else:
172 relative_to = DirectoryOfThisScript()
173 final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to )
174
175 return {
176 'flags': final_flags,
177 'do_cache': True
178 }
179
180def Settings( **kwargs ):
181 language = kwargs[ 'language' ]

Callers

nothing calls this directly

Calls 3

DirectoryOfThisScriptFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…