mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
CCLS LSP for VIM // Resolve #2952
This commit is contained in:
@ -10,6 +10,7 @@ PlatformIO 4.0
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Update SCons tool to 3.1.1
|
||||
* Generate ``.ccls`` LSP file for `Vim <http://docs.platformio.org/en/page/vim.html>`__ cross references, hierarchies, completion and semantic highlighting (`issue #2952 <https://github.com/platformio/platformio-core/issues/2952>`_)
|
||||
* Remove ProjectConfig cache when "platformio.ini" was modified outside
|
||||
* Fixed an issue with PIO Unified Debugger on Windows OS when debug server is piped
|
||||
* Fixed an issue when `--upload-port <http://docs.platformio.org/page/userguide/cmd_run.html#cmdoption-platformio-run-upload-port>`__ CLI flag does not override declared `upload_port <http://docs.platformio.org/page/projectconf/section_env_upload.html#upload-port>`__ option in `"platformio.ini" (Project Configuration File) <https://docs.platformio.org/page/projectconf.html>`__
|
||||
|
2
docs
2
docs
Submodule docs updated: 61b4715449...6fd93411b2
22
platformio/ide/tpls/vim/.ccls.tpl
Normal file
22
platformio/ide/tpls/vim/.ccls.tpl
Normal file
@ -0,0 +1,22 @@
|
||||
% import re
|
||||
% STD_RE = re.compile(r"\-std=[a-z\+]+(\d+)")
|
||||
% cc_stds = STD_RE.findall(cc_flags)
|
||||
% cxx_stds = STD_RE.findall(cxx_flags)
|
||||
%
|
||||
%
|
||||
clang
|
||||
|
||||
% if cc_stds:
|
||||
{{"%c"}} -std=c{{ cc_stds[-1] }}
|
||||
% end
|
||||
% if cxx_stds:
|
||||
{{"%cpp"}} -std=c++{{ cxx_stds[-1] }}
|
||||
% end
|
||||
|
||||
% for include in includes:
|
||||
-I{{ include }}
|
||||
% end
|
||||
|
||||
% for define in defines:
|
||||
-D{{ define }}
|
||||
% end
|
Reference in New Issue
Block a user