diff --git a/HISTORY.rst b/HISTORY.rst index e9b4990f1b..8499b973d7 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 53c4afebd1..a747bb61b2 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 53c4afebd1..a747bb61b2 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 53c4afebd1..a747bb61b2 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 }}