MCPcopy Index your code
hub / github.com/nodejs/node / FlagsForFile

Function FlagsForFile

deps/v8/.ycm_extra_conf.py:175–192  ·  view source on GitHub ↗

This is the main entry point for YCM. Its interface is fixed. Args: filename: (String) Path to source file being edited. Returns: (Dictionary) 'flags': (List of Strings) Command line flags. 'do_cache': (Boolean) True if the result should be cached.

(filename)

Source from the content-addressed store, hash-verified

173
174
175def FlagsForFile(filename):
176 """This is the main entry point for YCM. Its interface is fixed.
177
178 Args:
179 filename: (String) Path to source file being edited.
180
181 Returns:
182 (Dictionary)
183 'flags': (List of Strings) Command line flags.
184 'do_cache': (Boolean) True if the result should be cached.
185 """
186 v8_root = FindV8SrcFromFilename(filename)
187 v8_flags = GetClangCommandFromNinjaForFilename(v8_root, filename)
188 final_flags = flags + v8_flags
189 return {
190 'flags': final_flags,
191 'do_cache': True
192 }
193
194
195def Settings(**kwargs):

Callers 1

SettingsFunction · 0.85

Calls 2

FindV8SrcFromFilenameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…