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

Function getCurrentFile

plugin/libclang.py:17–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15# Get a tuple (fileName, fileContent) for the file opened in the current
16# vim buffer. The fileContent contains the unsafed buffer content.
17def getCurrentFile():
18 file = "\n".join(vim.eval("getline(1, '$')"))
19 return (vim.current.buffer.name, file)
20
21def getCurrentTranslationUnit(args, currentFile, fileName, update = False):
22 if fileName in translationUnits:

Callers 3

updateCurrentDiagnosticsFunction · 0.85
WarmupCacheFunction · 0.85
getCurrentCompletionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected