The struct and enum alignments are kept by disabling clang-format for
that code region.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
openmp/libomptarget/include/omptarget.h | ||
---|---|---|
27 | Probably don't need the extra comment, clang-format off is descriptive. | |
openmp/libomptarget/src/rtl.cpp | ||
13 | Hopefully header order is not significant. I think there was something where one header required a definition of a macro before it was included, but that may have been fixed in the changes to debug print. |
openmp/libomptarget/src/rtl.cpp | ||
---|---|---|
13 | You are referring to plugins/common/elf_common/elf_common.h. This header file uses macro DP() without including Debug.h, so Debug.h must have been included in the plugin's source file before elf_common.h. This requirement still exists, so we must be careful if we clang-format the plugins. |
openmp/libomptarget/src/rtl.cpp | ||
---|---|---|
13 | I guess it will break if we do it wrong ;) A new line ensures there is no reordering by clang-format. |
Probably don't need the extra comment, clang-format off is descriptive.