Skip to content

Commit 54b51fc

Browse files
committed
Merge branch 'develop' of https://github.com/platformio/platformio-core into develop
# Conflicts: # HISTORY.rst
2 parents 1f284e8 + 2a30ad0 commit 54b51fc

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

HISTORY.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ PlatformIO Core 5
1616
- Fixed an issue with "ImportError: cannot import name '_get_backend' from 'cryptography.hazmat.backends'" when using `Remote Development <https://docs.platformio.org/page/plus/pio-remote.html>`__ on RaspberryPi device (`issue #3652 <https://github.com/platformio/platformio-core/issues/3652>`_)
1717
- Fixed an issue when `pio package unpublish <https://docs.platformio.org/page/core/userguide/package/cmd_unpublish.html>`__ command crashes (`issue #3660 <https://github.com/platformio/platformio-core/issues/3660>`_)
1818
- Fixed an issue when the package manager tries to install a built-in library from the registry (`issue #3662 <https://github.com/platformio/platformio-core/issues/3662>`_)
19+
- Fixed an issue with incorrect value for C++ language standard in IDE projects when an in-progress language standard is used (`issue #3653 <https://github.com/platformio/platformio-core/issues/3653>`_)
1920

2021
5.0.0 (2020-09-03)
2122
~~~~~~~~~~~~~~~~~~

platformio/ide/tpls/clion/CMakeListsPrivate.txt.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ SET(CMAKE_CXX_COMPILER "{{ _normalize_path(cxx_path) }}")
6363
SET(CMAKE_CXX_FLAGS "{{ _normalize_path(to_unix_path(cxx_flags)) }}")
6464
SET(CMAKE_C_FLAGS "{{ _normalize_path(to_unix_path(cc_flags)) }}")
6565

66-
% STD_RE = re.compile(r"\-std=[a-z\+]+(\d+)")
66+
% STD_RE = re.compile(r"\-std=[a-z\+]+(\w+)")
6767
% cc_stds = STD_RE.findall(cc_flags)
6868
% cxx_stds = STD_RE.findall(cxx_flags)
6969
% if cc_stds:

platformio/ide/tpls/eclipse/.settings/language.settings.xml.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% import re
2-
% STD_RE = re.compile(r"(\-std=[a-z\+]+\d+)")
2+
% STD_RE = re.compile(r"(\-std=[a-z\+]+\w+)")
33
% cxx_stds = STD_RE.findall(cxx_flags)
44
% cxx_std = cxx_stds[-1] if cxx_stds else ""
55
%

platformio/ide/tpls/emacs/.ccls.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% import re
2-
% STD_RE = re.compile(r"\-std=[a-z\+]+(\d+)")
2+
% STD_RE = re.compile(r"\-std=[a-z\+]+(\w+)")
33
% cc_stds = STD_RE.findall(cc_flags)
44
% cxx_stds = STD_RE.findall(cxx_flags)
55
%

platformio/ide/tpls/vim/.ccls.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% import re
2-
% STD_RE = re.compile(r"\-std=[a-z\+]+(\d+)")
2+
% STD_RE = re.compile(r"\-std=[a-z\+]+(\w+)")
33
% cc_stds = STD_RE.findall(cc_flags)
44
% cxx_stds = STD_RE.findall(cxx_flags)
55
%

platformio/ide/tpls/vscode/.vscode/c_cpp_properties.json.tpl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66
%
77
% systype = platform.system().lower()
88
%
9+
% cpp_standards_remap = {
10+
% "0x": "11",
11+
% "1y": "14",
12+
% "1z": "17",
13+
% "2a": "20",
14+
% "2b": "23"
15+
% }
16+
%
917
% def _escape(text):
1018
% return to_unix_path(text).replace('"', '\\"')
1119
% end
@@ -68,7 +76,7 @@
6876
%
6977
% cleaned_includes = filter_includes(includes, ["toolchain"])
7078
%
71-
% STD_RE = re.compile(r"\-std=[a-z\+]+(\d+)")
79+
% STD_RE = re.compile(r"\-std=[a-z\+]+(\w+)")
7280
% cc_stds = STD_RE.findall(cc_flags)
7381
% cxx_stds = STD_RE.findall(cxx_flags)
7482
% cc_m_flags = split_args(cc_flags)
@@ -115,7 +123,7 @@
115123
"cStandard": "c{{ cc_stds[-1] }}",
116124
% end
117125
% if cxx_stds:
118-
"cppStandard": "c++{{ cxx_stds[-1] }}",
126+
"cppStandard": "c++{{ cpp_standards_remap.get(cxx_stds[-1], cxx_stds[-1]) }}",
119127
% end
120128
% if forced_includes:
121129
"forcedInclude": [

0 commit comments

Comments
 (0)