OLD | NEW |
1 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 # Autocompletion config for YouCompleteMe in WebRTC. This is just copied from | 9 # Autocompletion config for YouCompleteMe in WebRTC. This is just copied from |
10 # tools/vim in chromium with very minor modifications. | 10 # tools/vim in chromium with very minor modifications. |
11 # | 11 # |
12 # USAGE: | 12 # USAGE: |
13 # | 13 # |
14 # 1. Install YCM [https://github.com/Valloric/YouCompleteMe] | 14 # 1. Install YCM [https://github.com/Valloric/YouCompleteMe] |
15 # (Googlers should check out [go/ycm]) | 15 # (Googlers should check out [go/ycm]) |
16 # | 16 # |
17 # 2. Create a symbolic link to this file called .ycm_extra_conf.py in the | 17 # 2. Create a symbolic link to this file called .ycm_extra_conf.py in the |
18 # directory above your WebRTC checkout (i.e. next to your .gclient file). | 18 # directory above your WebRTC checkout (i.e. next to your .gclient file). |
19 # | 19 # |
20 # cd src | 20 # cd src |
21 # ln -rs tools-webrtc/vim/webrtc.ycm_extra_conf.py \ | 21 # ln -rs tools_webrtc/vim/webrtc.ycm_extra_conf.py \ |
22 # ../.ycm_extra_conf.py | 22 # ../.ycm_extra_conf.py |
23 # | 23 # |
24 # 3. (optional) Whitelist the .ycm_extra_conf.py from step #2 by adding the | 24 # 3. (optional) Whitelist the .ycm_extra_conf.py from step #2 by adding the |
25 # following to your .vimrc: | 25 # following to your .vimrc: |
26 # | 26 # |
27 # let g:ycm_extra_conf_globlist=['<path to .ycm_extra_conf.py>'] | 27 # let g:ycm_extra_conf_globlist=['<path to .ycm_extra_conf.py>'] |
28 # | 28 # |
29 # You can also add other .ycm_extra_conf.py files you want to use to this | 29 # You can also add other .ycm_extra_conf.py files you want to use to this |
30 # list to prevent excessive prompting each time you visit a directory | 30 # list to prevent excessive prompting each time you visit a directory |
31 # covered by a config file. | 31 # covered by a config file. |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 # transient failure. Preventing YCM from caching the flags allows us to try to | 348 # transient failure. Preventing YCM from caching the flags allows us to try to |
349 # determine the flags again. | 349 # determine the flags again. |
350 should_cache_flags_for_file = bool(clang_flags) | 350 should_cache_flags_for_file = bool(clang_flags) |
351 | 351 |
352 final_flags = _DEFAULT_FLAGS + clang_flags | 352 final_flags = _DEFAULT_FLAGS + clang_flags |
353 | 353 |
354 return { | 354 return { |
355 'flags': final_flags, | 355 'flags': final_flags, |
356 'do_cache': should_cache_flags_for_file | 356 'do_cache': should_cache_flags_for_file |
357 } | 357 } |
OLD | NEW |