MCPcopy Create free account
hub / github.com/DFHack/dfhack / FlagsForFile

Function FlagsForFile

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

Source from the content-addressed store, hash-verified

141
142
143def FlagsForFile(filename, **kwargs):
144 # Bear in mind that compilation_info.compiler_flags_ does NOT return a
145 # python list, but a "list-like" StringVec object
146 compilation_info = GetCompilationInfoForFile(filename)
147 if not compilation_info:
148 return {
149 'flags':MakeRelativePathsInFlagsAbsolute(default_flags,DirectoryOfThisScript()),
150 'do_cache': True,
151 }
152
153 final_flags = MakeRelativePathsInFlagsAbsolute(
154 compilation_info.compiler_flags_,
155 compilation_info.compiler_working_dir_
156 )
157
158 # Make sure ycm reports more suspicuous code lines
159 final_flags.append('-Wextra')
160
161 return {
162 'flags': final_flags,
163 'do_cache': True
164 }

Callers

nothing calls this directly

Calls 3

DirectoryOfThisScriptFunction · 0.85

Tested by

no test coverage detected