Include order (chprintf.h) Topic is solved
Posted: Mon Jun 05, 2023 9:32 pm
Hello!
I use clang-format for automatically sorting include files by scope and name, and this leads to compilation problems with some headers.
One such example is
Since chprintf.h depends on type declarations from hal.h, this does not compile. Would you consider adding the hal.h include into the chprintf.h header? Otherwise, I see no way of fixing this issues (except for not using my formatter and sorting by hand).
Thank you in advance
I use clang-format for automatically sorting include files by scope and name, and this leads to compilation problems with some headers.
One such example is
Code: Select all
#include "chprintf.h"
#include "hal.h"
Since chprintf.h depends on type declarations from hal.h, this does not compile. Would you consider adding the hal.h include into the chprintf.h header? Otherwise, I see no way of fixing this issues (except for not using my formatter and sorting by hand).
Thank you in advance