MCPcopy
hub / github.com/xavierd/clang_complete / splitOptions

Function splitOptions

plugin/libclang.py:59–76  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

57 return tu
58
59def splitOptions(options):
60 optsList = []
61 opt = ""
62 quoted = False
63
64 for char in options:
65 if char == ' ' and not quoted:
66 if opt != "":
67 optsList += [opt]
68 opt = ""
69 continue
70 elif char == '"':
71 quoted = not quoted
72 opt += char
73
74 if opt != "":
75 optsList += [opt]
76 return optsList
77
78def getQuickFix(diagnostic):
79 # Some diagnostics have no file, e.g. "too many errors emitted, stopping now"

Callers 2

updateCurrentDiagnosticsFunction · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected