An attempt to make platformio work with clang without any errors.
It should not be board specific and it should take care of everything itself.
Currently it fixes missing flags errors, it generates include paths and sets compiler path.
It does not yet fix strange error of In included file: machine/endian.h file not found.
Run:
pio run -t compiledbto create compile_commands.json Then run the script in root of the directory.
python clangd_fix.pyI will improve this documentation once I fix endian.h problem.