X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/4f92618fd8fb2e91a63e4aeef6477c98ba64ec5a..b76559a2a0d04fc7dd442936bccff0b7bf54d424:/vim/ultisnips/cpp.snippets?ds=sidebyside diff --git a/vim/ultisnips/cpp.snippets b/vim/ultisnips/cpp.snippets index 7a27d78..5530263 100644 --- a/vim/ultisnips/cpp.snippets +++ b/vim/ultisnips/cpp.snippets @@ -34,9 +34,9 @@ $1 &operator=($1 &&) = default; endsnippet snippet ns "namespace .. (namespace)" -namespace${1/.+/ /m}${1:`!p snip.rv = snip.basename or "name"`} { +namespace${1/.+/ /m}${1} { ${VISUAL}${0} -}${1/.+/ \/\/ namespace $0/m} +} // namespace${1/.+/ $0/m} endsnippet snippet mfun "Member Function" b @@ -153,3 +153,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 2020. 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