Commit 42c30b8f authored by bmeurer's avatar bmeurer Committed by Commit bot

[ycm] The YouCompleteMe configuration is not VIM specific.

Rename tools/vim/v8.ycm_extra_conf.py to .ycm_extra_conf.py, so every
YCM plugin (no matter if it's VIM or Emacs) should pick it up
automatically.

Also move the common tools/vim/ninja_output.py to tools/ninja/ as it's
also not related to VIM.

Review URL: https://codereview.chromium.org/904143003

Cr-Commit-Position: refs/heads/master@{#26602}
parent fb55eae3
......@@ -9,11 +9,7 @@
# 1. Install YCM [https://github.com/Valloric/YouCompleteMe]
# (Googlers should check out [go/ycm])
#
# 2. Point to this config file in your .vimrc:
# let g:ycm_global_ycm_extra_conf =
# '<v8_root>/tools/vim/v8.ycm_extra_conf.py'
#
# 3. Profit
# 2. Profit
#
#
# Usage notes:
......@@ -129,7 +125,7 @@ def GetClangCommandFromNinjaForFilename(v8_root, filename):
# try to use the default flags.
return v8_flags
sys.path.append(os.path.join(v8_root, 'tools', 'vim'))
sys.path.append(os.path.join(v8_root, 'tools', 'ninja'))
from ninja_output import GetNinjaOutputDirectory
out_dir = os.path.realpath(GetNinjaOutputDirectory(v8_root))
......
......@@ -47,7 +47,7 @@ def path_to_build_dir(configuration):
"""Returns <v8_root>/<output_dir>/(Release|Debug)."""
v8_root = path_to_source_root()
sys.path.append(os.path.join(v8_root, 'tools', 'vim'))
sys.path.append(os.path.join(v8_root, 'tools', 'ninja'))
from ninja_output import GetNinjaOutputDirectory
return GetNinjaOutputDirectory(v8_root, configuration)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment