]> granicus.if.org Git - neomutt/commitdiff
added comment-blocks for clang-format to ignore
authortoogley <toogley@mailbox.org>
Sat, 11 Feb 2017 21:25:20 +0000 (22:25 +0100)
committerRichard Russon <rich@flatcap.org>
Mon, 20 Feb 2017 17:15:36 +0000 (17:15 +0000)
charset.c
crypt-gpgme.c
functions.h
handler.c
imap/utf7.c

index 9c2ed0dcc5e5a5fbcc8c4ff2b10610bed06a52d8..df9002d543ba4fbe86a53ec5fc59b38d407cbfac 100644 (file)
--- a/charset.c
+++ b/charset.c
@@ -55,7 +55,9 @@ static const struct
   const char *key;
   const char *pref;
 }
-PreferredMIMENames[] = 
+
+// clang-format off
+PreferredMIMENames[] =
 {
   { "ansi_x3.4-1968",        "us-ascii"      },
   { "iso-ir-6",              "us-ascii"      },
@@ -211,6 +213,7 @@ PreferredMIMENames[] =
 
   { NULL,                     NULL           }
 };
+// clang-format on
 
 #ifdef HAVE_LANGINFO_CODESET
 # include <langinfo.h>
index a107684869dae20376d0c11509714cacbe903785..aa56cf82073c954beb637125f911064143b29c5b 100644 (file)
  * Helper macros.
  */
 #define digitp(p)   (*(p) >= '0' && *(p) <= '9')
+
+// clang-format off
 #define hexdigitp(a) (digitp (a)                     \
                       || (*(a) >= 'A' && *(a) <= 'F')  \
                       || (*(a) >= 'a' && *(a) <= 'f'))
 #define xtoi_1(p)   (*(p) <= '9'? (*(p)- '0'): \
                      *(p) <= 'F'? (*(p)-'A'+10):(*(p)-'a'+10))
+// clang-format on
+
 #define xtoi_2(p)   ((xtoi_1(p) * 16) + xtoi_1((p)+1))
 
 #define PKA_NOTATION_NAME "pka-address@gnupg.org"
index ec8f923f0d557f6a7636a1b0d3d6112ab2f13072..b5a53a4cb39139a5bfe7140679c11db03ab2945c 100644 (file)
@@ -35,6 +35,7 @@
 # include "doc/makedoc-defs.h"
 #endif
 
+// clang-format off
 const struct binding_t OpGeneric[] = { /* map: generic */
   /*
   ** <para>
@@ -564,3 +565,4 @@ const struct binding_t OpMix[] = { /* map: mixmaster */
   { NULL,                    0,                              NULL }
 };
 #endif /* MIXMASTER */
+// clang-format on
index 889c3ceca6571a511f03dc524816ff4ca84d04c0..2ba6cf23b402d8f40119f7ececc7b105f208e786 100644 (file)
--- a/handler.c
+++ b/handler.c
@@ -43,6 +43,7 @@
 
 typedef int (*handler_t) (BODY *, STATE *);
 
+// clang-format off
 const int Index_hex[128] = {
     -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
     -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
@@ -64,6 +65,7 @@ const int Index_64[128] = {
     -1,26,27,28, 29,30,31,32, 33,34,35,36, 37,38,39,40,
     41,42,43,44, 45,46,47,48, 49,50,51,-1, -1,-1,-1,-1
 };
+// clang-format on
 
 static void print_part_line (STATE *s, BODY *b, int n)
 {
index ed8723c8be43fb2bf4fd8232739e57090d6463f1..b5a6141e431febfab23a52524977f148ef806d2b 100644 (file)
@@ -24,6 +24,7 @@
 #include "charset.h"
 #include "imap_private.h"
 
+// clang-format off
 static const int Index_64[128] = {
     -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
     -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
@@ -34,6 +35,7 @@ static const int Index_64[128] = {
     -1,26,27,28, 29,30,31,32, 33,34,35,36, 37,38,39,40,
     41,42,43,44, 45,46,47,48, 49,50,51,-1, -1,-1,-1,-1
 };
+// clang-format on
 
 static const char B64Chars[64] = {
   'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',