Add C++ cast snippets
This commit is contained in:
parent
02520a6a20
commit
8fb6507c1c
@ -44,3 +44,19 @@ namespace ${1:}${1/\w+/ /}{
|
|||||||
$0
|
$0
|
||||||
}${1/\w+/ \/\/ $0/}
|
}${1/\w+/ \/\/ $0/}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet const_cast "Const cast"
|
||||||
|
const_cast<$1>($2)$0
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet dynamic_cast "Dynamic cast"
|
||||||
|
dynamic_cast<$1>($2)$0
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet static_cast "Static cast"
|
||||||
|
static_cast<$1>($2)$0
|
||||||
|
endsnippet
|
||||||
|
|
||||||
|
snippet reinterpret_cast "Reinterpret case"
|
||||||
|
reinterpret_cast<$1>($2)$0
|
||||||
|
endsnippet
|
||||||
|
Loading…
x
Reference in New Issue
Block a user