cmark

My personal build of CMark ✏️

Commit
3bfdadcb66aa969bee2eefe6da5df5028b55849d
Parent
43ceb9ed52eed01de2933bc0ef48d120a15be75a
Author
John MacFarlane <jgm@berkeley.edu>
Date

Add more NOLINTNEXTLINE directives.

Diffstat

1 file changed, 5 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified src/chunk.h 5 5 0
diff --git a/src/chunk.h b/src/chunk.h
@@ -16,6 +16,7 @@ typedef struct {
   bufsize_t len;
 } cmark_chunk;
 
+// NOLINTNEXTLINE(clang-diagnostic-unused-function)
 static CMARK_INLINE void cmark_chunk_free(cmark_chunk *c) {
   c->data = NULL;
   c->len = 0;
@@ -37,11 +38,13 @@ static CMARK_INLINE void cmark_chunk_rtrim(cmark_chunk *c) {
   }
 }
 
+// NOLINTNEXTLINE(clang-diagnostic-unused-function)
 static CMARK_INLINE void cmark_chunk_trim(cmark_chunk *c) {
   cmark_chunk_ltrim(c);
   cmark_chunk_rtrim(c);
 }
 
+// NOLINTNEXTLINE(clang-diagnostic-unused-function)
 static CMARK_INLINE bufsize_t cmark_chunk_strchr(cmark_chunk *ch, int c,
                                                  bufsize_t offset) {
   const unsigned char *p =
@@ -49,12 +52,14 @@ static CMARK_INLINE bufsize_t cmark_chunk_strchr(cmark_chunk *ch, int c,
   return p ? (bufsize_t)(p - ch->data) : ch->len;
 }
 
+// NOLINTNEXTLINE(clang-diagnostic-unused-function)
 static CMARK_INLINE cmark_chunk cmark_chunk_literal(const char *data) {
   bufsize_t len = data ? (bufsize_t)strlen(data) : 0;
   cmark_chunk c = {(unsigned char *)data, len};
   return c;
 }
 
+// NOLINTNEXTLINE(clang-diagnostic-unused-function)
 static CMARK_INLINE cmark_chunk cmark_chunk_dup(const cmark_chunk *ch,
                                                 bufsize_t pos, bufsize_t len) {
   cmark_chunk c = {ch->data + pos, len};