forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Vim/YCM] Fix hang/crash when no Clang command line is available.
Previously, we tried to determine the command line for building a source file by looking at the first output of said source file. This doesn't work if the first output doesn't yield a clang command line. This patch attempts to resolve this issue by going through all the build outputs of a source file until one is found that yields a clang command line. It is still possible to not find a Clang command line. In this case, patch causes a graceful failure, rather than a crash. R=jbroman@chromium.org,johnme@chromium.org BUG=497787 Review URL: https://codereview.chromium.org/1156223007 Cr-Commit-Position: refs/heads/master@{#336467}
- Loading branch information
Showing
5 changed files
with
477 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Copyright 2015 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
"""Presubmit tests for /tools/vim. | ||
Runs Python unit tests in /tools/vim/tests on upload. | ||
""" | ||
|
||
def CheckChangeOnUpload(input_api, output_api): | ||
return input_api.canned_checks.RunUnitTestsInDirectory( | ||
input_api, output_api, 'tests', whitelist=r'.*test.py') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.