Add most commonly used Doxygen comment snippets
This commit is contained in:
parent
4fc07f90d4
commit
595c45724d
@ -45,6 +45,16 @@ local snippets = {
|
||||
end, key('guard')),
|
||||
}, {}),
|
||||
|
||||
-- Doxygen
|
||||
snippet('p', {
|
||||
text('@param'),
|
||||
choice(1, { text('[in]'), text('[out]'), text('[in,out]'), text('') }),
|
||||
text(' '),
|
||||
insert(2, 'name'),
|
||||
text(' '),
|
||||
insert(0, 'desc'),
|
||||
}),
|
||||
|
||||
}
|
||||
|
||||
return snippets
|
||||
|
@ -4,3 +4,13 @@ snippet main
|
||||
int main(${1:int argc, const char **argv}) {
|
||||
$0
|
||||
}
|
||||
|
||||
# Doxygen
|
||||
snippet b
|
||||
@brief ${0:desc}
|
||||
|
||||
snippet r
|
||||
@return ${0:desc}
|
||||
|
||||
snippet rv
|
||||
@retval ${1:val} ${0:desc}
|
||||
|
Loading…
x
Reference in New Issue
Block a user