Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Unified Diff: tools/vim/ninja_output.py

Issue 1469023002: YouCompleteMe Ninja integration should accept dirs named out_* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed regression, add test, include ninja_output.py in PRESUBMIT Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/vim/PRESUBMIT.py ('k') | tools/vim/tests/chromium.ycm_extra_conf_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/vim/ninja_output.py
diff --git a/tools/vim/ninja_output.py b/tools/vim/ninja_output.py
index fab26eb53b65b50562054c2b0cb2a71a48c377f9..5bb638ab6d96676c368d8e5afcc81e4f7ceba308 100644
--- a/tools/vim/ninja_output.py
+++ b/tools/vim/ninja_output.py
@@ -40,7 +40,7 @@ def GetNinjaOutputDirectory(chrome_root, configuration=None):
output_dirs = [name_value[1]]
if not output_dirs:
for f in os.listdir(chrome_root):
- if re.match(r'out\b', f):
+ if re.match(r'out(\b|_)', f):
out = os.path.realpath(os.path.join(chrome_root, f))
if os.path.isdir(out):
output_dirs.append(os.path.relpath(out, start = chrome_root))
« no previous file with comments | « tools/vim/PRESUBMIT.py ('k') | tools/vim/tests/chromium.ycm_extra_conf_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698