mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-21 21:52:10 +02:00
Bug 562368 - Fix doxygen template documentation
Change-Id: If0763d66fab13bc1cc7445363368df4c53546c24
This commit is contained in:
parent
39cc3af569
commit
8fa9f63e13
2 changed files with 16 additions and 1 deletions
|
@ -796,6 +796,21 @@ public class DoxygenCCommentAutoEditStrategyTest extends AbstractAutoEditTest {
|
|||
assertAutoEditBehaviour();
|
||||
}
|
||||
|
||||
///**X
|
||||
//template<class T>
|
||||
//T foo() {}
|
||||
|
||||
///**
|
||||
// * X${whitespace_eol}
|
||||
// * @tparam T
|
||||
// * @return
|
||||
// */
|
||||
//template<class T>
|
||||
//T foo() {}
|
||||
public void testTemplateParameters_Bug562368() throws CoreException {
|
||||
assertAutoEditBehaviour();
|
||||
}
|
||||
|
||||
protected void assertAutoEditBehaviour() throws CoreException {
|
||||
CTextTools textTools = CUIPlugin.getDefault().getTextTools();
|
||||
final IDocument doc = new Document();
|
||||
|
|
|
@ -206,7 +206,7 @@ public class DoxygenMultilineAutoEditStrategy extends DefaultMultilineCommentAut
|
|||
.append(ASTStringUtil.getSimpleName(decl.getName()))
|
||||
.append(ASTStringUtil.getSignatureString(null, decl)).append(getLineDelimiter());
|
||||
}
|
||||
result.append(getBriefTag()).append(getPrePostTag()).append(documentTemplateParameters(templateParams));
|
||||
result.append(getBriefTag()).append(getPrePostTag());
|
||||
|
||||
result.append(documentTemplateParameters(templateParams));
|
||||
result.append(documentFunctionParameters(getParameterDecls(decl)));
|
||||
|
|
Loading…
Add table
Reference in a new issue