From 3bfdadcb66aa969bee2eefe6da5df5028b55849d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 13 May 2020 17:01:13 -0700 Subject: Add more NOLINTNEXTLINE directives. --- src/chunk.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/chunk.h b/src/chunk.h index 1e93f66..bf3c42e 100644 --- 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}; -- cgit v1.2.3