Add sizeof, decltype, and declval snippets

This commit is contained in:
Kenneth Benzie 2018-11-11 22:41:16 +00:00
parent 91dc036e8f
commit 446063c2e3
2 changed files with 12 additions and 0 deletions

View File

@ -11,6 +11,10 @@ def complete(t, opts):
return '(' + '|'.join(opts) + ')'
endglobal
snippet sizeof "sizeof" i
sizeof($1)$0
endsnippet
snippet i8 "int8_t" i
int8_t
endsnippet

View File

@ -65,6 +65,14 @@ snippet static_assert "Static assert"
static_assert($1, "$2");
endsnippet
snippet decltype "decltype" i
decltype($1)$0
endsnippet
snippet declval "declval" i
declval<$1>()$0
endsnippet
snippet noisy "A noise class"
class noisy_t {
public: