]> git.rmz.io Git - dotfiles.git/commitdiff
vim/cpp: snippets to disable clang-tidy diags
authorSamir Benmendil <me@rmz.io>
Sat, 1 May 2021 14:00:21 +0000 (15:00 +0100)
committerSamir Benmendil <me@rmz.io>
Sat, 1 May 2021 14:25:48 +0000 (15:25 +0100)
vim/ultisnips/c.snippets

index c54b875fedfb4913034ba8f05a00bdf3772a3301..62824bc71de65c20148ff32eb8c586f0ecad5739 100644 (file)
@@ -32,3 +32,11 @@ snippet clangformat "Disable clang-format"
 ${VISUAL}${0}
 // clang-format on
 endsnippet
+
+snippet nolintnl "Disable clang-tiny diagnostic on next line" b
+//NOLINTNEXTLINE(${0})
+endsnippet
+
+snippet nolint "Disable clang-tiny diagnostic"
+NOLINT(${0})
+endsnippet