Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CDT GCC parser to correctly parse C++ commands #1005

Closed
wants to merge 1 commit into from

Conversation

dziekon
Copy link
Contributor

@dziekon dziekon commented Sep 15, 2017

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 for C++ files.

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.
@CLAassistant
Copy link

CLAassistant commented Sep 15, 2017

CLA assistant check
All committers have signed the CLA.

@projectgus
Copy link
Contributor

Oops, thank you for this @dziekon .

Could you please click through to sign the CLA link above? Even though it's a small change we prefer if everyone signs the CLA. Then we can merge this fix ASAP.

@dziekon
Copy link
Contributor Author

dziekon commented Sep 18, 2017

Done, and thanks for merging it.

@projectgus projectgus added the Status: Pending blocked by some other factor label Sep 20, 2017
igrr pushed a commit that referenced this pull request Sep 21, 2017
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 #1005
@projectgus
Copy link
Contributor

Cherry-picked as e822b37.

@projectgus projectgus closed this Sep 26, 2017
@igrr igrr removed the Status: Pending blocked by some other factor label Nov 14, 2017
0xFEEDC0DE64 pushed a commit to 0xFEEDC0DE64/esp-idf that referenced this pull request May 5, 2021
This fixes the compile error when we include SPI.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants