Skip to content

Commit

Permalink
Fixed an issue with a GCC Linter for PlatformIO IDE for Atom // Resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Oct 31, 2019
1 parent 1d5d09f commit 3de2d84
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ PlatformIO Core 4.0
- Unused variables or functions
- Out of scope memory usage.

* `PlatformIO Home 3.0 <http://docs.platformio.org/page/home/index.html>`__
* `PlatformIO Home 3.0 <http://docs.platformio.org/page/home/index.html>`__ and Project Inspection

- Static Code Analysis
- Firmware File Explorer
Expand All @@ -39,6 +39,7 @@ PlatformIO Core 4.0
* Fixed an issue when booleans in "platformio.ini" are not parsed properly (`issue #3022 <https://github.com/platformio/platformio-core/issues/3022>`_)
* Fixed an issue with invalid encoding when generating project for Visual Studio (`issue #3183 <https://github.com/platformio/platformio-core/issues/3183>`_)
* Fixed an issue when Project Config Parser does not remove in-line comments when Python 3 is used (`issue #3213 <https://github.com/platformio/platformio-core/issues/3213>`_)
* Fixed an issue with a GCC Linter for PlatformIO IDE for Atom (`issue #3218 <https://github.com/platformio/platformio-core/issues/3218>`_)

4.0.3 (2019-08-30)
~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion platformio/ide/tpls/atom/.gcc-flags.json.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
% _defines = " ".join(["-D%s" % d for d in defines])
% _defines = " ".join(["-D%s" % d.replace(" ", "\\\\ ") for d in defines])
{
"execPath": "{{ cxx_path }}",
"gccDefaultCFlags": "-fsyntax-only {{! cc_flags.replace(' -MMD ', ' ').replace('"', '\\"') }} {{ !_defines.replace('"', '\\"') }}",
Expand Down
4 changes: 2 additions & 2 deletions platformio/ide/tpls/vim/.gcc-flags.json.tpl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
% _defines = " ".join(["-D%s" % d for d in defines])
% _defines = " ".join(["-D%s" % d.replace(" ", "\\\\ ") for d in defines])
{
"execPath": "{{ cxx_path }}",
"gccDefaultCFlags": "-fsyntax-only {{! cc_flags.replace(' -MMD ', ' ').replace('"', '\\"') }} {{ !_defines.replace('"', '\\"') }}",
"gccDefaultCppFlags": "-fsyntax-only {{! cxx_flags.replace(' -MMD ', ' ').replace('"', '\\"') }} {{ !_defines.replace('"', '\\"') }}",
"gccErrorLimit": 15,
"gccIncludePaths": "{{! ','.join("'{}'".format(inc) for inc in includes)}}",
"gccIncludePaths": "{{ ','.join(includes) }}",
"gccSuppressWarnings": false
}

0 comments on commit 3de2d84

Please sign in to comment.