Improve doxygen header snippet

This commit is contained in:
Kenneth Benzie 2017-01-27 22:48:50 -08:00
parent 1bb15c8e92
commit 3803e98e57

View File

@ -31,13 +31,21 @@ snippet "/// a" "Doxygen attention block"
/// @attention $0
endsnippet
snippet file "Doxygen file block" b
snippet header "Header noise" b
$1
/// @file
///
/// @brief $0
/// @brief $2
///
/// @copyright
/// Copyright (C) 2002-2016 Codeplay Software Limited. All Rights Reserved.
/$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"