Explorar el Código

clang-format: Add comments to suppress some formatting

Preserve manually-formatted blocks.
Brad King hace 7 años
padre
commit
eb7ec19c1c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      Modules/CMakeCompilerABI.h

+ 2 - 1
Modules/CMakeCompilerABI.h

@@ -2,10 +2,11 @@
 /* Size of a pointer-to-data in bytes.  */
 #define SIZEOF_DPTR (sizeof(void*))
 const char info_sizeof_dptr[] = {
+  /* clang-format off */
   'I', 'N', 'F', 'O', ':', 's', 'i', 'z', 'e', 'o', 'f', '_', 'd', 'p', 't',
   'r', '[', ('0' + ((SIZEOF_DPTR / 10) % 10)), ('0' + (SIZEOF_DPTR % 10)), ']',
   '\0'
-  /* clang-format needs this comment to break after the opening brace */
+  /* clang-format on */
 };
 
 /* Application Binary Interface.  */