]> git.rmz.io Git - dotfiles.git/blobdiff - vim/ultisnips/cpp.snippets
vim/cpp: add noexcept qualifier to rule5 move ctr/opr
[dotfiles.git] / vim / ultisnips / cpp.snippets
index 5ffbe5159c9c4f225020395d233552274bb7ef08..1d44b8c92f5e8ad44546d221fb9a64a5fbdf7449 100644 (file)
@@ -2,7 +2,9 @@
 priority 1
 
 # disable horrible one word snippets
 priority 1
 
 # disable horrible one word snippets
-clearsnippets pri pro pub fr mu t
+clearsnippets pri pro pub fr mu t pr
+
+clearsnippets set
 
 snippet inc "#include <>" b
 #include <${1:iostream}>
 
 snippet inc "#include <>" b
 #include <${1:iostream}>
@@ -28,9 +30,9 @@ snippet rule5 "Default constructors/destructors/operaters" b
 ${1:classname}() = default;
 ~$1() = default;
 $1($1 const &) = default;
 ${1:classname}() = default;
 ~$1() = default;
 $1($1 const &) = default;
-$1($1 &&) = default;
+$1($1 &&) noexcept = default;
 $1 &operator=($1 const &) = default;
 $1 &operator=($1 const &) = default;
-$1 &operator=($1 &&) = default;
+$1 &operator=($1 &&) noexcept = default;
 endsnippet
 
 snippet ns "namespace .. (namespace)"
 endsnippet
 
 snippet ns "namespace .. (namespace)"
@@ -163,7 +165,7 @@ ${VISUAL}${0}
 endsnippet
 
 snippet FPP "FPP Copyright" b
 endsnippet
 
 snippet FPP "FPP Copyright" b
-// Copyright © Focal Point Positioning Limited 2020. All Rights Reserved.
+// 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.
 // 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.