[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}
This commit is contained in:
bmeurer 2015-02-11 23:21:06 -08:00 committed by Commit bot
parent fb55eae323
commit 42c30b8f39
3 changed files with 3 additions and 7 deletions

View File

@ -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))

View File

@ -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)