From e695e30a9b313fdcd0036207cf4e46012a1dcd00 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 23 Jan 2021 14:44:53 +0200 Subject: [PATCH] Fixed an issue with compiler driver for ".ccls" language server // Resolve #3808 --- HISTORY.rst | 3 ++- platformio/ide/tpls/emacs/.ccls.tpl | 2 +- platformio/ide/tpls/sublimetext/.ccls.tpl | 2 +- platformio/ide/tpls/vim/.ccls.tpl | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index e9b4990f..8499b973 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -18,12 +18,13 @@ PlatformIO Core 5 * Fixed a "UnicodeDecodeError: 'utf-8' codec can't decode byte" when using J-Link for firmware uploading on Linux (`issue #3804 `_) * Fixed an issue with Python 3.8+ on Windows when a network drive is used (`issue #3417 `_) * Fixed an issue when "strict" compatibility mode was not used for a library with custom "platforms" field in `library.json `__ manifest (`issue #3806 `_) +* Fixed an issue with compiler driver for ".ccls" language server (`issue #3808 `_) 5.0.4 (2020-12-30) ~~~~~~~~~~~~~~~~~~ - Added "Core" suffix when showing PlatformIO Core version using ``pio --version`` command -- Improved ``.ccls`` configuration file for Emacs, Vim, and Sublime Text integrations +- Improved ".ccls" configuration file for Emacs, Vim, and Sublime Text integrations - Updated analysis tools: * `Cppcheck `__ v2.3 with improved C++ parser and several new MISRA rules diff --git a/platformio/ide/tpls/emacs/.ccls.tpl b/platformio/ide/tpls/emacs/.ccls.tpl index 53c4afeb..a747bb61 100644 --- a/platformio/ide/tpls/emacs/.ccls.tpl +++ b/platformio/ide/tpls/emacs/.ccls.tpl @@ -1,4 +1,4 @@ -{{ cxx_path }} +clang {{"%c"}} {{ !cc_flags }} {{"%cpp"}} {{ !cxx_flags }} diff --git a/platformio/ide/tpls/sublimetext/.ccls.tpl b/platformio/ide/tpls/sublimetext/.ccls.tpl index 53c4afeb..a747bb61 100644 --- a/platformio/ide/tpls/sublimetext/.ccls.tpl +++ b/platformio/ide/tpls/sublimetext/.ccls.tpl @@ -1,4 +1,4 @@ -{{ cxx_path }} +clang {{"%c"}} {{ !cc_flags }} {{"%cpp"}} {{ !cxx_flags }} diff --git a/platformio/ide/tpls/vim/.ccls.tpl b/platformio/ide/tpls/vim/.ccls.tpl index 53c4afeb..a747bb61 100644 --- a/platformio/ide/tpls/vim/.ccls.tpl +++ b/platformio/ide/tpls/vim/.ccls.tpl @@ -1,4 +1,4 @@ -{{ cxx_path }} +clang {{"%c"}} {{ !cc_flags }} {{"%cpp"}} {{ !cxx_flags }}