summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-05-13 17:01:13 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-05-13 17:01:13 -0700
commit3bfdadcb66aa969bee2eefe6da5df5028b55849d (patch)
tree4e260af8da88471b227e44cec2d2d4a725e211e3
parent43ceb9ed52eed01de2933bc0ef48d120a15be75a (diff)
Add more NOLINTNEXTLINE directives.
-rw-r--r--src/chunk.h5
1 files changed, 5 insertions, 0 deletions
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};