Skip to content

Commit

Permalink
Silence some false positive clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbarnes committed Nov 5, 2024
1 parent d5e1651 commit 519d0da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/change.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ static void reverse_change(View *view, Change *change)
BUG_ON(!del_count && !ins_count);

if (view->buffer->views.count > 1) {
// NOLINTNEXTLINE(readability-suspicious-call-argument)
fix_cursors(view, change->offset, ins_count, del_count);
}

Expand Down Expand Up @@ -204,6 +205,7 @@ static void reverse_change(View *view, Change *change)
}

// Reverse replace
// NOLINTNEXTLINE(readability-suspicious-call-argument)
char *buf = do_replace(view, ins_count, change->buf, del_count);
free(change->buf);
change->buf = buf;
Expand Down

0 comments on commit 519d0da

Please sign in to comment.