Improve doxygen header snippet

This commit is contained in:
Kenneth Benzie 2017-01-27 22:48:50 -08:00
parent e48cd16f23
commit 6736b8d8a3

View File

@ -39,6 +39,23 @@ snippet "/// a" "Doxygen attention block"
/// @attention $0
endsnippet
snippet header "Header noise" b
$1
/// @file
///
/// @brief $2
///
/// @copyright
/$1
#ifndef ${4/([A-Za-z_]){1}([A-Za-z0-9_]+).*/$1$2/}$3
#define $4${3:`!p import string
snip.rv = re.sub(r'[^A-Za-z0-9]+','_', snip.fn).upper()`_INCLUDED}
$0
#endif // ${4/([A-Za-z_]){1}([A-Za-z0-9_]+).*/$1$2/}$3
endsnippet
snippet "/// cp" "Doxygen copydoc block"
/// @copydoc $0
endsnippet