Improve doxygen header snippet
This commit is contained in:
parent
1bb15c8e92
commit
3803e98e57
@ -31,13 +31,21 @@ snippet "/// a" "Doxygen attention block"
|
|||||||
/// @attention $0
|
/// @attention $0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet file "Doxygen file block" b
|
snippet header "Header noise" b
|
||||||
|
$1
|
||||||
/// @file
|
/// @file
|
||||||
///
|
///
|
||||||
/// @brief $0
|
/// @brief $2
|
||||||
///
|
///
|
||||||
/// @copyright
|
/// @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
|
endsnippet
|
||||||
|
|
||||||
snippet "/// cp" "Doxygen copydoc block"
|
snippet "/// cp" "Doxygen copydoc block"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user