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

Function MakeIncludePathAbsolute

deps/v8/.ycm_extra_conf.py:165–172  ·  view source on GitHub ↗
(flag, prefix, out_dir)

Source from the content-addressed store, hash-verified

163
164
165def MakeIncludePathAbsolute(flag, prefix, out_dir):
166 # Relative paths need to be resolved, because they're relative to the
167 # output dir, not the source.
168 if flag[len(prefix)] == '/':
169 return flag
170 else:
171 abs_path = os.path.normpath(os.path.join(out_dir, flag[len(prefix):]))
172 return prefix + abs_path
173
174
175def FlagsForFile(filename):

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…