You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code excerpt below compiles. But if I run clang-format on it, clang-format reorders these include definitions, causing some compilation errors. These compilation errors happen because glad.h redefines some macros
#include<glad/glad.h>#include<GLFW/glfw3.h>
If I instead write it like below, the code compiles properly because clang-format does not reorder in this case.
#include"glad/glad.h"#include<GLFW/glfw3.h>
This issue is somewhat related to the issue #53013
The text was updated successfully, but these errors were encountered:
I assume clang-format assumes headers are safely re-orderable. If you have headers that can't be reordered, I guess you have to turn off clang-format's include sorting.
The code excerpt below compiles. But if I run clang-format on it, clang-format reorders these include definitions, causing some compilation errors. These compilation errors happen because
glad.h
redefines some macrosIf I instead write it like below, the code compiles properly because clang-format does not reorder in this case.
This issue is somewhat related to the issue #53013
The text was updated successfully, but these errors were encountered: