I use clang format in vscode. However, I've encountered an issue where header files are automatically sorted, causing unexpected changes as illustrated below:
abstract-machine/am/src/native/ioe/audio.c: In function ‘__am_audio_init’:
abstract-machine/am/src/native/ioe/audio.c:13:15: error: implicit declaration of function‘pipe2’; did you mean ‘pipe’? [-Werror=implicit-function-declaration]
13 | int ret = pipe2(fds, O_NONBLOCK);
| ^~~~~
| pipe
cc1: all warnings being treated as errors
Would it be possible to consider adding a comment or notice in the codebase to emphasize this behavior? It would be helpful to prevent such sorting of header files and subsequent compilation errors.
I use clang format in vscode. However, I've encountered an issue where header files are automatically sorted, causing unexpected changes as illustrated below:
This leads to compilation error:
Would it be possible to consider adding a comment or notice in the codebase to emphasize this behavior? It would be helpful to prevent such sorting of header files and subsequent compilation errors.