X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/672244974f0a29e537bcfe934ab3bb95e8d2ca63..b6916fcd97ab132495e36b97ccac28c285906a68:/vim/ultisnips/cpp.snippets diff --git a/vim/ultisnips/cpp.snippets b/vim/ultisnips/cpp.snippets index 3bc235f..8b24ec2 100644 --- a/vim/ultisnips/cpp.snippets +++ b/vim/ultisnips/cpp.snippets @@ -46,7 +46,8 @@ ${4:void} ${1:`!p snip.rv = snip.basename or "name"`}::${2:memberFunction}(${3}) } endsnippet -snippet for "for loop (for)" +clearsnippets for +snippet fori "for loop (for)" b for (${4:size_t} ${2:i} = 0; $2 < ${1:count}; ${3:++$2}) { ${VISUAL}${0} @@ -153,3 +154,18 @@ inline std::ostream & operator<<(std::ostream &os, ${1:Type} const & rhs) return os; } endsnippet + +snippet pragma-ignore "ignore diagnostics" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-W${1}" +${VISUAL}${0} +#pragma GCC diagnostic pop +endsnippet + +snippet FPP "FPP Copyright" b +// Copyright © Focal Point Positioning Limited `!v strftime("%Y")`. All Rights Reserved. +// This code is the copyright of Focal Point Positioning Limited and +// cannot be used, copied or distributed without the express written +// permission of Focal Point Positioning Limited. +${0} +endsnippet