From dab43be08c98f646abc0f977bc822cce5950227b Mon Sep 17 00:00:00 2001
From: "Kenneth Benzie (Benie)" <benie@infektor.net>
Date: Fri, 7 Oct 2016 19:57:37 +0100
Subject: [PATCH] Add noisy struct snippet
---
UltiSnips/cpp.snippets | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/UltiSnips/cpp.snippets b/UltiSnips/cpp.snippets
index c844039..7539cd3 100644
--- a/UltiSnips/cpp.snippets
+++ b/UltiSnips/cpp.snippets
@@ -64,3 +64,15 @@ endsnippet
snippet static_assert "Static assert"
static_assert($1, "$2");
endsnippet
+
+snippet noisy "A noise class"
+class noisy_t {
+ public:
+ noisy_t() { puts(__PRETTY_FUNCTION__); }
+ noisy_t(const noisy_t &) { puts(__PRETTY_FUNCTION__); }
+ noisy_t(noisy_t &&) { puts(__PRETTY_FUNCTION__); }
+ noisy_t &operator=(const noisy_t &) { puts(__PRETTY_FUNCTION__); return *this; }
+ noisy_t &operator=(noisy_t &&) { puts(__PRETTY_FUNCTION__); return *this; }
+ ~noisy_t() { puts(__PRETTY_FUNCTION__); }
+};
+endsnippet