]> granicus.if.org Git - esp-idf/commitdiff
Fix CDT GCC parser to correctly parse C++ commands
authordziekon <dziekon@gmail.com>
Fri, 15 Sep 2017 22:02:33 +0000 (00:02 +0200)
committerAngus Gratton <gus@projectgus.com>
Wed, 20 Sep 2017 02:06:23 +0000 (12:06 +1000)
Previously suggested parser command pattern:

xtensa-esp32-elf-(g?cc)|([gc]\+\+)|(clang)

was incorrect for compilation of c++ files, as it is expanded by Eclipse into or between:

xtensa-esp32-elf-(g?cc)
([gc]\+\+)
(clang)

Additional grouping around existing pattern solves that issue, and helps Eclipse to correctly find ESP-IDF includes.

Merges https://github.com/espressif/esp-idf/pull/1005

docs/get-started/eclipse-setup-windows.rst

index f8bec31e661bdc682ee80660ba7beecf09313968..94ee30d34290ddd57578052e45de81c2ceb7c72a 100644 (file)
@@ -58,7 +58,7 @@ Project Properties
 
      * In the list of providers, click "CDT GCC Built-in Compiler Settings Cygwin". Under "Command to get compiler specs", replace the text ``${COMMAND}`` at the beginning of the line with ``xtensa-esp32-elf-gcc``. This means the full "Command to get compiler specs" should be ``xtensa-esp32-elf-gcc ${FLAGS} -E -P -v -dD "${INPUTS}"``.
 
-     * In the list of providers, click "CDT GCC Build Output Parser" and type ``xtensa-esp32-elf-`` at the beginning of the Compiler command pattern. This means the full Compiler command pattern should be ``xtensa-esp32-elf-(g?cc)|([gc]\+\+)|(clang)``
+     * In the list of providers, click "CDT GCC Build Output Parser" and type ``xtensa-esp32-elf-`` at the beginning of the Compiler command pattern, and wrap remaining part with brackets. This means the full Compiler command pattern should be ``xtensa-esp32-elf-((g?cc)|([gc]\+\+)|(clang))``
 
 
 Building in Eclipse