Anyone use clangd (VS Code extension) with gcc for RX?
Anyone use clangd (VS Code extension) with gcc for RX?
We use VS Code as our development IDE, and cross-compile/debug using gcc for RX and the Renesas Debug extension for VS Code. e2Studio is only used for the integrated SmartConfigurator.
We have a few issues with clangd not recognizing some gcc for RX options, etc. Does anyone else use clang, and if so, what workarounds do you have? Also, a lot of Renesas’ code (generated by SMC) “lights up” in red, but that is another issue.
Hello,
Thank you for reaching out to us!
Unfortunately, this support platform is dedicated to compilers used with various Renesas targets, platforms and devices. For this reason, our information about the VSCode extension and how it uses clangd is limited. For conclusive information, we suggest you access the following sources that might offer support in this direction:
https://community.renesas.com/n/support
If we can help you with anything else, please let us know.
__
Best regards,
The Open Source Tools Team
I had a similar issue with LLVM for RL78 and VSCode. Specifying the compiler flags to be ignored with .clangd file worked for me. (you can even add flags only for clangd!)
See also: Configuration (llvm.org)
Hope this helps!