MCPcopy Create free account
hub / github.com/SolaWing/xcode-build-server / GetFlagsInCompile

Function GetFlagsInCompile

compile_database.py:329–335  ·  view source on GitHub ↗

read flags from compileFile. filename should be realpath

(filename, compileFile, store)

Source from the content-addressed store, hash-verified

327
328
329def GetFlagsInCompile(filename, compileFile, store):
330 """read flags from compileFile. filename should be realpath"""
331 if compileFile:
332 command = commandForFile(filename, compileFile, store)
333 if command:
334 flags = cmd_split(command)[1:] # ignore executable
335 return list(filterFlags(flags, store.setdefault("filelist", {})))
336
337
338def GetFlags(filename: str, compileFile=None, store=None):

Callers 2

GetFlagsFunction · 0.85
InferFlagsForSwiftFunction · 0.85

Calls 3

commandForFileFunction · 0.85
filterFlagsFunction · 0.85
cmd_splitFunction · 0.70

Tested by

no test coverage detected